mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 20:14:22 +02:00
Update tests
- Enable tests for osx.universal platform. - Export HTML5 (but skip upload as .cast files aren't exported properly). - HACK: Use HTML5 export to generate .import directory for tests This way we don't get an error message even if using `continue-on-error` set to `true`.
This commit is contained in:
parent
10983653c6
commit
16d231fc63
5 changed files with 231 additions and 98 deletions
|
@ -1,6 +1,25 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Parse args.
|
||||
args=$@
|
||||
while [[ $# -gt 0 ]]; do
|
||||
key="$1"
|
||||
case $key in
|
||||
-t|--target)
|
||||
target="$2"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ./build.sh [-t|--target <release|debug>]";
|
||||
exit 128
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# Set defaults.
|
||||
target=${target:-debug}
|
||||
|
||||
# Get the absolute path to the directory this script is in.
|
||||
EXPORT_TEMPLATES_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
|
||||
|
@ -13,11 +32,10 @@ fi
|
|||
|
||||
# Use Docker to build HTML5 GDNative export templates.
|
||||
UID_GID="0:0" docker-compose build javascript
|
||||
UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=$target javascript
|
||||
|
||||
# Debug
|
||||
UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=debug javascript
|
||||
mv godot/bin/godot.javascript.debug.gdnative.zip godot/bin/webassembly_gdnative_debug.zip
|
||||
|
||||
### Release
|
||||
UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=release javascript
|
||||
mv godot/bin/godot.javascript.opt.gdnative.zip godot/bin/webassembly_gdnative_release.zip
|
||||
if [ "$target" == "debug" ]; then
|
||||
mv godot/bin/godot.javascript.debug.gdnative.zip godot/bin/webassembly_gdnative_debug.zip
|
||||
else
|
||||
mv godot/bin/godot.javascript.opt.gdnative.zip godot/bin/webassembly_gdnative_release.zip
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue