production.sh

#keytool -genkey -v -keystore $HOME/creepychat-release-key.keystore -alias creepychat_key -keyalg RSA -keysize 2048 -validity 10000

cordova build --release android

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../files/keys/creepychat-release-key.keystore ../platforms/android/build/outputs/apk/android-release-unsigned.apk creepychat_key

cd ../platforms/android/build/outputs/apk/
rm creepychat.apk
cd ../../../../

$HOME/Softwares/android/Sdk/build-tools/25.0.2/zipalign -v 4 ../platforms/android/build/outputs/apk/android-release-unsigned.apk ../platforms/android/build/outputs/apk/creepychat.apk