fix: flatten templates/ subfolder after tpz unzip for CI exports

This commit is contained in:
2026-06-18 15:37:14 +08:00
parent 231b06a01d
commit acd139ca92
2 changed files with 30 additions and 11 deletions
+20 -10
View File
@@ -7,7 +7,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version to build (e.g., 2.3.8)'
description: 'Version to build (e.g., 2.4.0)'
required: true
type: string
@@ -29,9 +29,13 @@ jobs:
- name: Setup Export Templates
run: |
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
unzip Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
mkdir -p "$TEMPLATES_DIR"
wget -q https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O templates.tpz
unzip -q templates.tpz -d "$TEMPLATES_DIR"
# tpz extracts into templates/ subfolder — flatten it
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
rmdir "$TEMPLATES_DIR/templates"
- name: Export Windows Build
run: |
@@ -62,9 +66,12 @@ jobs:
- name: Setup Export Templates
run: |
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
unzip Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
mkdir -p "$TEMPLATES_DIR"
wget -q https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O templates.tpz
unzip -q templates.tpz -d "$TEMPLATES_DIR"
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
rmdir "$TEMPLATES_DIR/templates"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
@@ -98,9 +105,12 @@ jobs:
- name: Setup Export Templates
run: |
mkdir -p ~/Library/Application\ Support/Godot/export_templates/4.6.stable
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
unzip Godot_v4.6-stable_export_templates.tpz -d ~/Library/Application\ Support/Godot/export_templates/4.6.stable
TEMPLATES_DIR=~/Library/Application\ Support/Godot/export_templates/4.6.stable
mkdir -p "$TEMPLATES_DIR"
wget -q https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O templates.tpz
unzip -q templates.tpz -d "$TEMPLATES_DIR"
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
rmdir "$TEMPLATES_DIR/templates"
- name: Export macOS Build
run: |
+10 -1
View File
@@ -7,7 +7,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version to build (e.g., 2.3.8)'
description: 'Version to build (e.g., 2.4.0)'
required: true
type: string
@@ -42,6 +42,15 @@ jobs:
version: '4.6.0'
use-dotnet: false
- name: Setup Export Templates
run: |
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
mkdir -p "$TEMPLATES_DIR"
wget -q https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O templates.tpz
unzip -q templates.tpz -d "$TEMPLATES_DIR"
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
rmdir "$TEMPLATES_DIR/templates"
- name: Setup Android SDK (Android only)
if: matrix.platform.name == 'Android'
uses: android-actions/setup-android@v3