Last active
February 22, 2017 12:15
-
-
Save DavidFrahm/a6d573273279e9b69754 to your computer and use it in GitHub Desktop.
Revisions
-
David Frahm revised this gist
Sep 11, 2016 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,13 @@ #!/bin/bash FINAL_BINARY_FILEPATH="platforms/android/build/outputs/apk/wakatime-android-release-signed.apk" echo "*** Build Ionic release for Android ***" rm $FINAL_BINARY_FILEPATH ionic build --release android echo "Signing APK..." jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/Dropbox/WakaTime/Build/Android/wakatime.keystore -storepass $WAKATIME_STOREPASS platforms/android/build/outputs/apk/android-release-unsigned.apk android echo "Optimizing APK (zipalign)..." ~/Library/Android/sdk/build-tools/23.0.3/zipalign -v -f 4 platforms/android/build/outputs/apk/android-release-unsigned.apk $FINAL_BINARY_FILEPATH # echo "Opening APK..." # open platforms/MyApp.apk echo "Build complete" echo "App binary ready for upload at \`"$FINAL_BINARY_FILEPATH"\`" -
David Frahm created this gist
Jan 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash echo "Building Ionic/Cordova Android release..." ionic build --release android echo "Signing APK..." jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/Library/Android/myapp-release-key.keystore -storepass mypassword platforms/android/ant-build/CordovaApp-release-unsigned.apk myapp echo "Optimizing APK (zipalign)..." ~/Library/Android/sdk/build-tools/21.1.1/zipalign -v -f 4 platforms/android/ant-build/CordovaApp-release-unsigned.apk platforms/MyApp.apk echo "Opening APK (in HockeyApp)..." open platforms/MyApp.apk echo "Done"