Releasing for Android¶
These instructions assume your WhaleJS project is located in $PROJECT directory.
Install APKTool.
Install Uber Apk Signer.
Download WhaleJS Android build.
Extract downloaded WhaleJS APK file with APKTool. Let’s assume extracted files will be located in
$WHALEdirectory.$ apktool d -s -o $WHALE WhaleJS-Android.apk
Delete contents of
$WHALE/assets/demoand copy your project into this directory.$ rm -rf $WHALE/assets/demo/* $ cp -r $PROJECT/* $WHALE/assets/demo/
Customize your app’s label, package name and version by editing
$WHALE/AndroidManifest.xml.<?xml version="1.0" encoding="utf-8"?> <manifest package="com.mycompany.myapp" android:versionCode="1" android:versionName="1.0.0" ...> ... <application android:label="MyApp" ...> <activity android:label="MyApp" ...> ... </activity> </application> ... </manifest>
Customize your app’s icon in
$WHALE/res.Package your project with APKTool.
$ apktool b -o myapp.apk $WHALE
Sign
myapp.apkwith Uber Apk Signer. The following command signs it with a debug keystore.$ java -jar uber-apk-signer.jar --apks myapp.apk
This will produce a new signed APK file which can now be installed.