chore: upgrade Godot 4.6 -> 4.7 stable in CI and local
This commit is contained in:
+11
-11
@@ -27,22 +27,22 @@ jobs:
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
apt-get install -y zip
|
||||
if [ ! -f /cache/godot_4.6 ]; then
|
||||
echo "Downloading Godot 4.6..."
|
||||
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip"
|
||||
if [ ! -f /cache/godot_4.7 ]; then
|
||||
echo "Downloading Godot 4.7..."
|
||||
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_linux.x86_64.zip"
|
||||
unzip -q -o /tmp/godot.zip -d /cache/
|
||||
mv /cache/Godot_v4.6-stable_linux.x86_64 /cache/godot_4.6
|
||||
mv /cache/Godot_v4.7-stable_linux.x86_64 /cache/godot_4.7
|
||||
fi
|
||||
cp /cache/godot_4.6 /usr/local/bin/godot
|
||||
cp /cache/godot_4.7 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
|
||||
if [ ! -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
|
||||
mkdir -p ~/.local/share/godot/export_templates/4.7.stable
|
||||
if [ ! -f /cache/Godot_v4.7-stable_export_templates.tpz ]; then
|
||||
echo "Downloading templates..."
|
||||
curl -sL -o /cache/Godot_v4.6-stable_export_templates.tpz \
|
||||
"https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz"
|
||||
curl -sL -o /cache/Godot_v4.7-stable_export_templates.tpz \
|
||||
"https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_export_templates.tpz"
|
||||
fi
|
||||
cd ~/.local/share/godot/export_templates/4.6.stable
|
||||
unzip -q -o /cache/Godot_v4.6-stable_export_templates.tpz
|
||||
cd ~/.local/share/godot/export_templates/4.7.stable
|
||||
unzip -q -o /cache/Godot_v4.7-stable_export_templates.tpz
|
||||
mv templates/* .
|
||||
rm -rf templates
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
Reference in New Issue
Block a user