#!/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" godot3 --no-window --export-debug HTML5 "$BUILD_TARGET_DEBUG" echo Exporting release to "$BUILD_TARGET_RELEASE" godot3 --no-window --export HTML5 "$BUILD_TARGET_RELEASE" echo Uploading to "$TARGET" rsync --recursive --times --compress --progress "$BUILD_FOLDER" "$TARGET"