23 lines
484 B
Bash
Executable File
23 lines
484 B
Bash
Executable File
|
|
godot4 () {
|
|
app_dir=$(ls /Applications | grep Godot | grep 4 | tail -n 1)
|
|
"$(find "/Applications/$app_dir" | egrep "Godot$")" $*
|
|
}
|
|
|
|
rm -rf "builds/web"
|
|
mkdir -p "builds/web"
|
|
|
|
echo "Exporting..."
|
|
echo
|
|
|
|
godot4 --headless --export-release "Web" "builds/web/index.html" || exit 1
|
|
|
|
echo
|
|
echo "Deploying to games.vojtechstruhar.com"
|
|
|
|
rsync -avz \
|
|
-e "ssh -i $HOME/.ssh/hetzner_first" \
|
|
--delete \
|
|
builds/web/ \
|
|
root@vojtechstruhar.com:/var/www/web-games/balatro-shader
|