tools for exporting godot projects via Github Actions
rcedit
| -rw-r--r-- | .github/actions/export-android/action.yml | 7 | ||||
| -rw-r--r-- | .github/actions/export-windows/action.yml | 2 | ||||
| -rw-r--r-- | .github/actions/setup-godot/action.yml | 20 |
3 files changed, 17 insertions, 12 deletions
diff --git a/.github/actions/export-android/action.yml b/.github/actions/export-android/action.yml index 225edf5..da3881c 100644 --- a/.github/actions/export-android/action.yml +++ b/.github/actions/export-android/action.yml @@ -40,13 +40,6 @@ runs: fi shell: bash - - name: Setup editor settings - if: steps.get-export-name.outputs.export-name - run: | - mkdir -p ~/.config/godot/ - mv /root/.config/godot/editor_settings-3.tres ~/.config/godot/editor_settings-3.tres - shell: bash - - name: Build (release) if: inputs.android-keystore-base64 && steps.get-export-name.outputs.export-name run: | diff --git a/.github/actions/export-windows/action.yml b/.github/actions/export-windows/action.yml index b665628..7c83d7e 100644 --- a/.github/actions/export-windows/action.yml +++ b/.github/actions/export-windows/action.yml @@ -17,6 +17,8 @@ runs: if: steps.get-export-name.outputs.export-name run: | echo "::group::Windows Build" + export WINEPREFIX="$HOME/wineprefix" + mkdir "$WINEPREFIX" && chown -R "${USER}:" "$WINEPREFIX" mkdir -p build/windows godot -v --export "${{ steps.get-export-name.outputs.export-name }}" ./build/windows/$NAME.exe echo "::endgroup::" diff --git a/.github/actions/setup-godot/action.yml b/.github/actions/setup-godot/action.yml index 6c0b3f9..e37d948 100644 --- a/.github/actions/setup-godot/action.yml +++ b/.github/actions/setup-godot/action.yml @@ -27,12 +27,22 @@ runs: - name: Setup godot run: | echo "::group::Setup godot" - git config --global --add safe.directory $(pwd) - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version - mkdir -v -p ~/.local/share/godot/templates + + # config + mkdir -p ~/.config/godot/ + mv /root/.config/godot/editor_settings-3.tres ~/.config/godot/editor_settings-3.tres + + # create version label thing + git config --global --add safe.directory "$(pwd)" && printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version + + # templates [[ -z $RELEASE ]] && RELEASE=stable - mv /root/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} - ls ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} | tr '\n' ' ' + TEMPLATES_PATH=".local/share/godot/templates/${GODOT_VERSION}.${RELEASE}" + mkdir -p "${HOME}/${TEMPLATES_PATH}" + mv "/root/${TEMPLATES_PATH}/"* "${HOME}/${TEMPLATES_PATH}" + ls "${HOME}/${TEMPLATES_PATH}"| tr '\n' ' ' + + # gpm if [[ -f godot.package ]]; then [[ ! -d addons ]] && mkdir addons git clone --depth 1 https://github.com/you-win/godot-package-manager |