From 545ccad20bcb421d96b3b151a3d70e90be9d825c Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Sun, 10 Mar 2013 17:40:27 +0100 Subject: [PATCH] add build script for mobile version --- mobile/HACKING.md | 4 ++++ mobile/build_mobile.js | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 mobile/build_mobile.js diff --git a/mobile/HACKING.md b/mobile/HACKING.md index 74b441a7..3a7c2976 100644 --- a/mobile/HACKING.md +++ b/mobile/HACKING.md @@ -22,3 +22,7 @@ Building the APK ```export ANDROID_HOME=/path/to/android_sdk``` and build the project with ant: `ant debug` +- You can use `build_mobile.js`, too, which builds IITC, compresses + it and uses ant to build a release APK of IITCM. It requires that + you have Python and uglifyjs installed. You need to set the + `ANDROID_HOME`, like explained above. diff --git a/mobile/build_mobile.js b/mobile/build_mobile.js new file mode 100755 index 00000000..ef8057ca --- /dev/null +++ b/mobile/build_mobile.js @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +cd `dirname "$0"` +cd .. +./build.py +compressed="$(uglifyjs iitc-debug.user.js)" +echo "${compressed}" > "iitc-debug.user.js" + +cd mobile +ant release