-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev_build_windows.sh
More file actions
20 lines (15 loc) · 915 Bytes
/
dev_build_windows.sh
File metadata and controls
20 lines (15 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Download bob.jar like that:
# wget "https://github.com/defold/defold/releases/download/1.6.2/bob.jar" -O bob.jar
# Plus, the script uses https://www.npmjs.com/package/http-server to serve local files.
set -e
PLATFORM=x86_64-win32
RESZIP_INI="reszip.ini"
RESOURCES_ZIP="resources_$(date +%s).zip"
echo -e "[liveupdate_reszip]\nfilename = ${RESOURCES_ZIP}\npreload_file = ${RESOURCES_ZIP}\n\n" > "${RESZIP_INI}"
rm -rf build
mkdir -p build/public
java -jar bob.jar --email f@b.com --auth 123 --texture-compression true --settings "${RESZIP_INI}" --bundle-output build/public/${PLATFORM} --build-report-html build/public/build_report_latest.html --platform ${PLATFORM} --architectures ${PLATFORM} --archive --liveupdate yes --variant debug resolve build bundle
mv build/liveupdate_output/*.zip "build/public/${PLATFORM}/liveupdate_reszip_demo/${RESOURCES_ZIP}"
rm -f "${RESZIP_INI}"
http-server -c-