-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild_game.sh
More file actions
29 lines (24 loc) · 1.48 KB
/
build_game.sh
File metadata and controls
29 lines (24 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
sudo apt-get install unzip
GODOT_VERSION="3.2.4.rc3"
GODOT_BINARY_DOWNLOAD_LINK="https://downloads.tuxfamily.org/godotengine/3.2.4/rc3/Godot_v3.2.4-rc3_linux_headless.64.zip"
GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK="https://downloads.tuxfamily.org/godotengine/3.2.4/rc3/Godot_v3.2.4-rc3_export_templates.tpz"
GODOT_BINARY_FILENAME="$(basename -s .zip $GODOT_BINARY_DOWNLOAD_LINK)"
GODOT_ZIP_FILENAME="$(basename $GODOT_BINARY_DOWNLOAD_LINK)"
GODOT_TPZ_FILENAME="$(basename $GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK)"
wget $GODOT_BINARY_DOWNLOAD_LINK
wget $GODOT_EXPORT_TEMPLATES_DOWNLOAD_LINK
unzip $GODOT_ZIP_FILENAME
unzip $GODOT_TPZ_FILENAME
cd /home/runner/
sudo mkdir -p .local/share/godot
cd .local/share/godot
sudo mkdir -p templates/$GODOT_VERSION
sudo cp -r $GITHUB_WORKSPACE/templates/* templates/$GODOT_VERSION
cd $GITHUB_WORKSPACE
sudo mkdir -p builds/{x11-64-standard,x11-32-standard,win-32-standard,win-64-standard,osx-standard}
sudo ./$GODOT_BINARY_FILENAME --path "." --export "x11-64" $GITHUB_WORKSPACE/builds/x11-64-standard/PixelZone.x86_64
sudo ./$GODOT_BINARY_FILENAME --path "." --export "x11-32" $GITHUB_WORKSPACE/builds/x11-32-standard/PixelZone.x86
sudo ./$GODOT_BINARY_FILENAME --path "." --export "osx" $GITHUB_WORKSPACE/builds/osx-standard/PixelZone.zip
sudo ./$GODOT_BINARY_FILENAME --path "." --export "win-64" $GITHUB_WORKSPACE/builds/win-64-standard/PixelZone.exe
sudo ./$GODOT_BINARY_FILENAME --path "." --export "win-32" $GITHUB_WORKSPACE/builds/win-32-standard/PixelZone.exe