mirror of https://github.com/BTCPrivate/copay.git
Automate building production ready apk
This commit is contained in:
parent
31ea547454
commit
2c1c07e185
|
@ -49,6 +49,7 @@ version.js
|
||||||
|
|
||||||
android/package
|
android/package
|
||||||
android/*.apk
|
android/*.apk
|
||||||
|
android/*.keystore
|
||||||
|
|
||||||
coverage/
|
coverage/
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,16 @@ then
|
||||||
DEBUG="--enable-remote-debugging"
|
DEBUG="--enable-remote-debugging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $# -eq 1 && ! $1 = "-d" ]]
|
||||||
|
then
|
||||||
|
if [ ! -f $BUILDDIR/copay.keystore ]
|
||||||
|
then
|
||||||
|
echo "${OpenColor}${Red}* Can't build production app without a keystore${CloseColor}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
PRODUCTION="--keystore-path=$BUILDDIR/copay.keystore --keystore-alias=copay_play --keystore-passcode=$1"
|
||||||
|
fi
|
||||||
|
|
||||||
# Move to the build directory
|
# Move to the build directory
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
|
|
||||||
|
@ -54,7 +64,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 $DEBUG --package=com.bitpay.copay
|
python make_apk.py --manifest=$APPDIR/manifest.json --package=com.bitpay.copay --arch=arm --target-dir=$BUILDDIR $DEBUG $PRODUCTION
|
||||||
checkOK
|
checkOK
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue