This repository has been archived on 2024-11-15. You can view files and clone it, but cannot push or open issues or pull requests.
build-godot-action/entrypoint.sh

27 lines
781 B
Bash
Raw Normal View History

#!/bin/sh
set -e
2019-11-30 06:55:42 +02:00
if [ "$SUBDIRECTORY" != "" ]; then
SUBDIRECTORY = "/$SUBDIRECTORY/"
fi
wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet
mkdir ~/.cache
mkdir -p ~/.config/godot
mkdir -p ~/.local/share/godot/templates/3.1.1.stable
unzip Godot_v3.1.1-stable_export_templates.tpz
mv templates/* ~/.local/share/godot/templates/3.1.1.stable
rm -f Godot_v3.1.1-stable_export_templates.tpz
# Export for Linux
mkdir -p ./build/linux
2019-11-30 06:55:42 +02:00
godot --export Linux/X11 ./build/linux/${SUBDIRECTORY}${PROJECT}
# Export for Windows
mkdir -p ./build/windows
2019-11-30 06:55:42 +02:00
godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY}${PROJECT}.exe
# Export for OSX
mkdir -p ./builds/mac
2019-11-30 06:55:42 +02:00
godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY}${PROJECT}