The Usage of Package Tools - PeterWangIntel/crosswalk-website GitHub Wiki
Package Android APK Command
The make_apk.py script will package the application defined in the specified manifest.json file and produce apk files from it. The apk files will end up in the directory where you ran the script. The follows are samples of main packaging commands for Crosswalk:
-
Basic packaging command
> python make_apk.py --package=org.crosswalkproject.example \ --manifest=xwalk-simple/manifest.json
-
Package for specific target architecture, taking x86 as example
> python make_apk.py --package=org.crosswalkproject.example \ --manifest=xwalk-simple/manifest.json --arch=x86
Note that if unspecified, APKs for all possible architestures will be generated.
-
Package an APK enabling remote debugging
> python make_apk.py --package=org.crosswalkproject.example \ --manifest=xwalk-simple/manifest.json --enable-remote-debugging
-
Set orientation of display
> python make_apk.py --package=org.crosswalkproject.example \ --manifest=xwalk-simple/manifest.json --orientation=landscape
-
Get help message
> python make_apk.py -h
Since new features for the package tools are added continuely, this command is helpful when try newest version.
-
Print debug message
> python make_apk.py --verbose
When you meet problem with the package tools, using this argument can output more information to help developers to debug.