You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
485 B

all:
make release
make sign
make zipalign
-make install
release:
ionic cordova build --release android
-rm ../android-release-unsigned.apk
cp ./platforms/android/build/outputs/apk/android-release-unsigned.apk ../android-release-unsigned.apk
sign:
make -C .. sign
zipalign:
-rm ../android-release-signed-zipaligned.apk
zipalign -v 4 ../android-release-signed.apk ../android-release-signed-zipaligned.apk
install:
adb install -r ../android-release-signed-zipaligned.apk