diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index f8b67fb..e299b7d 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -19,7 +19,7 @@ jobs: - name: Build project run: | - bash .github/workflows/scripts/prebuild.sh + sudo bash .github/workflows/scripts/prebuild.sh /usr/local/bin/godot --headless --path . --export-release "Windows Desktop" game.exe zip astrolaser_x64_windows.zip game.exe game.pck diff --git a/.github/workflows/scripts/prebuild.sh b/.github/workflows/scripts/prebuild.sh index 4ac2d22..8017b6b 100644 --- a/.github/workflows/scripts/prebuild.sh +++ b/.github/workflows/scripts/prebuild.sh @@ -10,10 +10,11 @@ sudo apt update \ && apt install -y libfontconfig unzip \ && unzip ${GODOT_VERSION} -mv ${GODOT_VERSION} /usr/local/bin/godot && godot --version +mv ${GODOT_VERSION} /usr/local/bin/godot +chmod +x /usr/local/bin/godot && godot --version # Install godot templates wget https://github.com/godotengine/godot-builds/releases/download/4.2-stable/Godot_v4.2-stable_export_templates.tpz unzip Godot_v4.2-stable_export_templates.tpz mkdir -p ~/.local/share/godot/export_templates/4.2.stable/ -cp -r templates/* ~/.local/share/godot/export_templates/4.2.stable/ +cp -rv templates/* ~/.local/share/godot/export_templates/4.2.stable/