Skip to content

Commit

Permalink
added build.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jul 17, 2019
1 parent 5546920 commit df823b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sh
@@ -0,0 +1,12 @@
#! /usr/bin/env bash

alias_name=$1
keystore=$2

rm -Rf node_modules/ www/ platforms/android/
npm install
ionic cordova platforms add android
ionic cordova build android --release

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $keystore ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk $alias_name
zipalign -v 4 ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk ./platforms/android/app/build/outputs/apk/release/TACOS.apk

0 comments on commit df823b8

Please sign in to comment.