ChocolateBird/update_web_build.sh

17 lines
695 B
Bash
Raw Normal View History

2023-12-06 14:45:02 +10:30
#!/bin/sh
# Make sure to have Godot_v3.6-beta3_x11.64 on the path as godot3 (symlink is fine)
BRANCH=`git branch --show-current`
BUILD_FOLDER="./build/web/"
BUILD_TARGET_DEBUG="${BUILD_FOLDER}${BRANCH}.html"
BUILD_TARGET_RELEASE="${BUILD_FOLDER}${BRANCH}_release.html"
# TARGET="ufeff.net:~/ChocolateBird/$BRANCH/"
TARGET="ufeff.net:~/ChocolateBird/"
mkdir -p "$BUILD_FOLDER"
echo Exporting debug to "$BUILD_TARGET_DEBUG"
2023-12-06 22:25:58 +10:30
godot3 --no-window --export-debug HTML5 "$BUILD_TARGET_DEBUG"
2023-12-06 14:45:02 +10:30
echo Exporting release to "$BUILD_TARGET_RELEASE"
2023-12-06 22:25:58 +10:30
godot3 --no-window --export HTML5 "$BUILD_TARGET_RELEASE"
2023-12-06 14:45:02 +10:30
echo Uploading to "$TARGET"
rsync --recursive --times --compress --progress "$BUILD_FOLDER" "$TARGET"