mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Update files for javascript build and export
Adds some files to making building and export for HTML5 more convenient.
This commit is contained in:
parent
2f4cbacf15
commit
bdda1458c0
11 changed files with 83 additions and 26 deletions
23
misc/export_templates/build.sh
Executable file
23
misc/export_templates/build.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Get the absolute path to the directory this script is in.
|
||||
EXPORT_TEMPLATES_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
|
||||
# Update git submodules.
|
||||
GODOT_DIR=${EXPORT_TEMPLATES_DIR}/godot
|
||||
if [ ! -d "$GODOT_DIR" ]; then
|
||||
cd ${EXPORT_TEMPLATES_DIR}
|
||||
git submodule update --init --recursive -- $GODOT_DIR
|
||||
fi
|
||||
|
||||
# Use Docker to build HTML5 GDNative export templates.
|
||||
UID_GID="0:0" docker-compose build 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
|
Loading…
Add table
Add a link
Reference in a new issue