Skip to content

Commit adc8e8a

Browse files
authored
Create build_game.sh
1 parent 05a3b94 commit adc8e8a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

build_game.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
sudo apt-get install unzip
3+
GODOT_VERSION="3.2.4.rc3"
4+
GODOT_BINARY_DOWNLOAD_LINK="https://downloads.tuxfamily.org/godotengine/3.2.4/rc3/Godot_v3.2.4-rc3_linux_headless.64.zip"
5+
GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK="https://downloads.tuxfamily.org/godotengine/3.2.4/rc3/Godot_v3.2.4-rc3_export_templates.tpz"
6+
7+
GODOT_BINARY_FILENAME="$(basename -s .zip $GODOT_BINARY_DOWNLOAD_LINK)"
8+
GODOT_ZIP_FILENAME="$(basename $GODOT_BINARY_DOWNLOAD_LINK)"
9+
GODOT_TPZ_FILENAME="$(basename $GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK)"
10+
wget $GODOT_BINARY_DOWNLOAD_LINK
11+
wget $GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK
12+
13+
unzip $GODOT_ZIP_FILENAME
14+
unzip $GODOT_TPZ_FILENAME
15+
16+
cd /home/runner/
17+
sudo mkdir -p .local/share/godot
18+
cd .local/share/godot
19+
sudo mkdir -p templates/$GODOT_VERSION
20+
sudo cp -r $GITHUB_WORKSPACE/templates/* templates/$GODOT_VERSION
21+
22+
cd $GITHUB_WORKSPACE
23+
sudo mkdir -p builds/{x11-64-standard,x11-32-standard,win-32-standard,win-64-standard,osx-standard}
24+
25+
sudo ./$GODOT_BINARY_FILENAME --path "." --export "x11-64" $GITHUB_WORKSPACE/builds/x11-64-standard/PixelZone.x86_64
26+
sudo ./$GODOT_BINARY_FILENAME --path "." --export "x11-32" $GITHUB_WORKSPACE/builds/x11-32-standard/PixelZone.x86
27+
sudo ./$GODOT_BINARY_FILENAME --path "." --export "osx" $GITHUB_WORKSPACE/builds/osx-standard/PixelZone.zip
28+
sudo ./$GODOT_BINARY_FILENAME --path "." --export "win-64" $GITHUB_WORKSPACE/builds/win-64-standard/PixelZone.exe
29+
sudo ./$GODOT_BINARY_FILENAME --path "." --export "win-32" $GITHUB_WORKSPACE/builds/win-32-standard/PixelZone.exe

0 commit comments

Comments
 (0)