mirror of
https://github.com/yeslayla/build-godot-action.git
synced 2025-07-04 03:25:03 +02:00
Add subdirectories
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
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
|
||||
@ -11,12 +16,12 @@ rm -f Godot_v3.1.1-stable_export_templates.tpz
|
||||
|
||||
# Export for Linux
|
||||
mkdir -p ./build/linux
|
||||
godot --export Linux/X11 ./build/linux/${PROJECT}
|
||||
godot --export Linux/X11 ./build/linux/${SUBDIRECTORY}${PROJECT}
|
||||
|
||||
# Export for Windows
|
||||
mkdir -p ./build/windows
|
||||
godot --export "Windows Desktop" ./build/windows/${PROJECT}.exe
|
||||
godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY}${PROJECT}.exe
|
||||
|
||||
# Export for OSX
|
||||
mkdir -p ./builds/mac
|
||||
godot --export "Mac OSX" ./build/mac/${PROJECT}
|
||||
godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY}${PROJECT}
|
Reference in New Issue
Block a user