Add debug flag to android build script
This commit is contained in:
parent
06878fd41c
commit
5d90ca57b8
2 changed files with 8 additions and 2 deletions
|
|
@ -139,8 +139,9 @@ export CROSSWALK="<path to Crosswalk directory>"
|
||||||
To build the APK run the script:
|
To build the APK run the script:
|
||||||
|
|
||||||
```
|
```
|
||||||
sh android/build.sh
|
sh android/build.sh [-d]
|
||||||
```
|
```
|
||||||
|
- The -d flag will package the apk in debug mode, allowing [remote debugging chrome](https://developer.chrome.com/devtools/docs/remote-debugging)
|
||||||
- The APK file is in **android/Copay_VERSION_arm.apk**
|
- The APK file is in **android/Copay_VERSION_arm.apk**
|
||||||
|
|
||||||
To install the APK in your device run:
|
To install the APK in your device run:
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,11 @@ checkOK() {
|
||||||
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
APPDIR="$BUILDDIR/package"
|
APPDIR="$BUILDDIR/package"
|
||||||
VERSION=`cut -d '"' -f2 $BUILDDIR/../version.js`
|
VERSION=`cut -d '"' -f2 $BUILDDIR/../version.js`
|
||||||
|
DEBUG=""
|
||||||
|
if [[ $1 = "-d" ]]
|
||||||
|
then
|
||||||
|
DEBUG="--enable-remote-debugging"
|
||||||
|
fi
|
||||||
|
|
||||||
# Move to the build directory
|
# Move to the build directory
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
|
|
@ -49,7 +54,7 @@ checkOK
|
||||||
# Building the APK
|
# Building the APK
|
||||||
echo "${OpenColor}${Green}* Building APK file...${CloseColor}"
|
echo "${OpenColor}${Green}* Building APK file...${CloseColor}"
|
||||||
cd $CROSSWALK
|
cd $CROSSWALK
|
||||||
python make_apk.py --manifest=$APPDIR/manifest.json --target-dir=$BUILDDIR --arch=arm
|
python make_apk.py --manifest=$APPDIR/manifest.json --target-dir=$BUILDDIR --arch=arm $DEBUG
|
||||||
checkOK
|
checkOK
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue