Build linux editor and templates
Some checks failed
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-release, windows, windows, yes, template_release) (push) Waiting to run
Build Godot Engine / publish (push) Blocked by required conditions
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-debug, linux, linuxbsd, no, template_debug) (push) Failing after 1m35s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-editor, linux, linuxbsd, yes, editor) (push) Failing after 1m16s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-release, linux, linuxbsd, yes, template_release) (push) Failing after 1m16s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-debug, windows, windows, no, template_debug) (push) Failing after 59s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-editor, windows, windows, yes, editor) (push) Has been cancelled
Some checks failed
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-release, windows, windows, yes, template_release) (push) Waiting to run
Build Godot Engine / publish (push) Blocked by required conditions
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-debug, linux, linuxbsd, no, template_debug) (push) Failing after 1m35s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-editor, linux, linuxbsd, yes, editor) (push) Failing after 1m16s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-linux-release, linux, linuxbsd, yes, template_release) (push) Failing after 1m16s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-debug, windows, windows, no, template_debug) (push) Failing after 59s
Build Godot Engine / Build ${{ matrix.platform }} ${{ matrix.target }} (godot-windows-editor, windows, windows, yes, editor) (push) Has been cancelled
This commit is contained in:
@ -1,47 +1,48 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# --- 0. SETUP ---
|
||||
# We install dependencies because we are running in a minimal Alpine container
|
||||
echo "Installing tools..."
|
||||
# Install tools (Alpine container)
|
||||
apk add --no-cache curl zip
|
||||
|
||||
echo "------------------------------------------------"
|
||||
echo "Publishing Packages for: $VERSION"
|
||||
echo "Registry API: $API_URL"
|
||||
echo "Publishing Packages for Version: $VERSION"
|
||||
echo "------------------------------------------------"
|
||||
|
||||
# --- 1. PUBLISH EDITOR ---
|
||||
echo "Processing Editor..."
|
||||
# Zip both .exe and .console.exe
|
||||
# --- 1. WINDOWS EDITOR ---
|
||||
echo "Packaging Windows Editor..."
|
||||
zip -j godot-editor-windows.zip dist/godot-windows-editor/*.exe
|
||||
|
||||
echo "Uploading Editor..."
|
||||
curl --fail --user "$ACTOR:$TOKEN" \
|
||||
--upload-file "godot-editor-windows.zip" \
|
||||
"$API_URL/godot-editor-windows/$VERSION/godot-editor-windows.zip"
|
||||
|
||||
# --- 2. PUBLISH TEMPLATES ---
|
||||
echo "Processing Templates..."
|
||||
# --- 2. LINUX EDITOR ---
|
||||
echo "Packaging Linux Editor..."
|
||||
# Find the linux binary (it has no extension, so we grep for 'godot.')
|
||||
LINUX_BIN=$(find dist/godot-linux-editor -type f -name "godot.linuxbsd.editor*" | head -n 1)
|
||||
zip -j godot-editor-linux.zip "$LINUX_BIN"
|
||||
|
||||
curl --fail --user "$ACTOR:$TOKEN" \
|
||||
--upload-file "godot-editor-linux.zip" \
|
||||
"$API_URL/godot-editor-linux/$VERSION/godot-editor-linux.zip"
|
||||
|
||||
# --- 3. EXPORT TEMPLATES (Windows + Linux) ---
|
||||
echo "Packaging Templates (.tpz)..."
|
||||
mkdir -p templates
|
||||
|
||||
# Select specific binaries (ignoring console wrapper)
|
||||
DEBUG_SRC=$(find dist/godot-windows-debug -name "*.exe" | grep -v "console.exe" | head -n 1)
|
||||
RELEASE_SRC=$(find dist/godot-windows-release -name "*.exe" | grep -v "console.exe" | head -n 1)
|
||||
# Windows Templates (Filter out console wrapper)
|
||||
cp $(ls dist/godot-windows-debug/*.exe | grep -v "console") templates/windows_debug_x86_64.exe
|
||||
cp $(ls dist/godot-windows-release/*.exe | grep -v "console") templates/windows_release_x86_64.exe
|
||||
|
||||
echo "Found Debug: $DEBUG_SRC"
|
||||
echo "Found Release: $RELEASE_SRC"
|
||||
# Linux Templates
|
||||
cp $(find dist/godot-linux-debug -type f -name "godot.*") templates/linux_debug.x86_64
|
||||
cp $(find dist/godot-linux-release -type f -name "godot.*") templates/linux_release.x86_64
|
||||
|
||||
# Rename to standard Godot export names
|
||||
cp "$DEBUG_SRC" templates/windows_debug_x86_64.exe
|
||||
cp "$RELEASE_SRC" templates/windows_release_x86_64.exe
|
||||
|
||||
# Zip into TPZ
|
||||
# Create TPZ
|
||||
zip -j templates.tpz templates/*
|
||||
|
||||
echo "Uploading Templates..."
|
||||
curl --fail --user "$ACTOR:$TOKEN" \
|
||||
--upload-file "templates.tpz" \
|
||||
"$API_URL/godot-templates/$VERSION/windows_templates.tpz"
|
||||
"$API_URL/godot-templates/$VERSION/templates.tpz"
|
||||
|
||||
echo "✅ Success! All packages published."
|
||||
echo "✅ All packages published successfully!"
|
||||
Reference in New Issue
Block a user