From cf16a3d72ff86c4fe18caa9154ad702d9f53c284 Mon Sep 17 00:00:00 2001 From: Maestro Date: Tue, 7 Jan 2025 00:55:08 +0200 Subject: [PATCH] 3 --- .github/workflows/github-actions.yml | 1 - .github/workflows/scripts/prebuild.sh | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 941b13b..f8b67fb 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -19,7 +19,6 @@ jobs: - name: Build project run: | - sudo -s 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 8017b6b..63f0f25 100644 --- a/.github/workflows/scripts/prebuild.sh +++ b/.github/workflows/scripts/prebuild.sh @@ -10,11 +10,11 @@ sudo apt update \ && apt install -y libfontconfig unzip \ && unzip ${GODOT_VERSION} -mv ${GODOT_VERSION} /usr/local/bin/godot -chmod +x /usr/local/bin/godot && godot --version +sudo mv ${GODOT_VERSION} /usr/local/bin/godot +sudo 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 -rv templates/* ~/.local/share/godot/export_templates/4.2.stable/ +sudo mkdir -p ~/.local/share/godot/export_templates/4.2.stable/ +sudo cp -rv templates/* ~/.local/share/godot/export_templates/4.2.stable/