diff --git a/README.md b/README.md index 02f4a546..9f80cf11 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ jobs: fetch-depth: 0 - name: export game # Use latest version (see releases for all versions) - uses: firebelley/godot-export@v2.6.0 + uses: firebelley/godot-export@v2.6.1 with: # Defining all the required inputs # I used the mono version of Godot in this example @@ -138,7 +138,7 @@ jobs: echo ::set-output name=TAG_VERSION::${GITHUB_REF#refs/tags/v} - name: export game # Use latest version (see releases for all versions) - uses: firebelley/godot-export@v2.6.0 + uses: firebelley/godot-export@v2.6.1 with: # Defining all the required inputs # I used the mono version of Godot in this example @@ -150,3 +150,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` + +### Using custom editor settings +Some Godot configurations are editor-based and not project-based. This includes things like Android paths. This repository provides a [base editor settings](./dist/editor_settings-3.tres) that will be used by default when exporting your games. However, you can supply a custom editor settings configuration by simply copying a a custom editor settings file to `~/.config/godot/editor_settings-3.tres` _before_ this action runs. This action will not overwrite an existing `editor_settings-3.tres` file. diff --git a/dist/index.js b/dist/index.js index fcd0f0e8..7b64d0cd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13091,7 +13091,7 @@ async function addEditorSettings() { const editorSettingsDist = Object(external_path_.join)(__dirname, editorSettings); await Object(io.mkdirP)(GODOT_CONFIG_PATH); const editorSettingsPath = Object(external_path_.join)(GODOT_CONFIG_PATH, editorSettings); - await Object(io.cp)(editorSettingsDist, editorSettingsPath); + await Object(io.cp)(editorSettingsDist, editorSettingsPath, { force: false }); Object(core.info)(`Wrote editor settings to ${editorSettingsPath}`); } function writeIconSettings() { diff --git a/src/godot.ts b/src/godot.ts index 74526887..aa93f17a 100644 --- a/src/godot.ts +++ b/src/godot.ts @@ -243,7 +243,7 @@ async function addEditorSettings(): Promise { await io.mkdirP(GODOT_CONFIG_PATH); const editorSettingsPath = path.join(GODOT_CONFIG_PATH, editorSettings); - await io.cp(editorSettingsDist, editorSettingsPath); + await io.cp(editorSettingsDist, editorSettingsPath, { force: false }); core.info(`Wrote editor settings to ${editorSettingsPath}`); }