Reset to old script
Some checks failed
Release Game Client / export-windows (push) Failing after 23s

This commit is contained in:
olof.pettersson
2025-12-03 16:34:22 +01:00
parent 3acd210826
commit 1e5a30173a

View File

@ -12,35 +12,43 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: apt-get update && apt-get install -y unzip wget zip run: apt-get update && apt-get install -y unzip wget zip
# 2. Setup: Download the Engine & Templates from your Registry - name: Download Engine Templates
# You built these in the previous pipeline!
- name: Setup Custom Godot
env: env:
# The version of the engine your game uses # The specific engine version this game needs
ENGINE_VERSION: "a90daf08c2bb52d6cb4ba67bb5cbe09d79b2c4eb" ENGINE_HASH: "a90daf08c2bb52d6cb4ba67bb5cbe09d79b2c4eb"
REGISTRY: "https://gitea.212.63.210.91.nip.io/api/packages/seedlingattempt/generic" # This string MUST match what your custom engine reports as its version
TOKEN: ${{ secrets.USER_PACKAGE_PASSWORD }} # Example: "4.3.stable" or "4.3.stable.mygame"
GODOT_VERSION_STRING: "4.6"
run: | run: |
echo "Fetching Editor..." echo "Downloading templates..."
wget --header="Authorization: token $TOKEN" \ wget "https://gitea.212.63.210.91.nip.io/api/packages/seedlingattempt/generic/godot-templates/${ENGINE_HASH}/windows_templates.tpz"
"$REGISTRY/godot-editor-windows/$ENGINE_VERSION/godot-editor-windows.zip"
unzip -o godot-editor-windows.zip
# Make the editor executable echo "Installing templates..."
chmod +x godot.windows.editor*.exe # Godot looks for templates in ~/.local/share/godot/export_templates/{VERSION}/
mv godot.windows.editor*.exe godot_headless.exe TEMPLATE_PATH="$HOME/.local/share/godot/export_templates/${GODOT_VERSION_STRING}"
echo "Fetching Templates..."
wget --header="Authorization: token $TOKEN" \
"$REGISTRY/godot-templates/$ENGINE_VERSION/windows_templates.tpz"
# Install templates to the standard path Godot expects
# Note: The folder name MUST match the version string in your custom engine
# (Run your custom editor locally and check 'About' to see the exact string)
TEMPLATE_PATH="$HOME/.local/share/godot/export_templates/4.3.stable.custom_build"
mkdir -p "$TEMPLATE_PATH" mkdir -p "$TEMPLATE_PATH"
# Unzip our TPZ directly into that folder
unzip windows_templates.tpz -d "$TEMPLATE_PATH" unzip windows_templates.tpz -d "$TEMPLATE_PATH"
# Rename them to standard names if they aren't already
# (Your publish script already renamed them to windows_release_x86_64.exe, so this is fine!)
- name: Download Headless Editor (For Exporting)
env:
ENGINE_HASH: "a90daf08c2bb52d6cb4ba67bb5cbe09d79b2c4eb"
run: |
mkdir godot_headless
wget "https://gitea.212.63.210.91.nip.io/api/packages/seedlingattempt/generic/godot-editor-windows/${ENGINE_HASH}/godot-editor-windows.zip"
unzip godot-editor-windows.zip
chmod +x godot.windows.editor*.exe
# Create a simple alias
mv godot.windows.editor*.exe godot_headless.exe
- name: Export Game - name: Export Game
run: | run: |
mkdir -p build/windows mkdir -p build/windows