Skip to content

Instantly share code, notes, and snippets.

@intari
Created October 9, 2015 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intari/feeaae1e3abfb018caf8 to your computer and use it in GitHub Desktop.
Save intari/feeaae1e3abfb018caf8 to your computer and use it in GitHub Desktop.
#!/bin/bash
ant clean
ant release
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $ANDROID_KEYSTORE -storepass $ANDROID_STORE_PASS ~/Documents/Work/FBReader-for-Android/bin/FBReaderJ-release-unsigned.apk key0
rm ~/Documents/Work/FBReader-for-Android/FBReaderJ-release.apk
~/Library/Android/sdk/build-tools/21.1.2/zipalign -v 4 ~/Documents/Work/FBReader-for-Android/bin/FBReaderJ-release-unsigned.apk ~/Documents/Work/FBReader-for-Android/FBReaderJ-release.apk
jarsigner -verify -certs ~/Documents/Work/FBReader-for-Android/FBReaderJ-release.apk
#submit to HockeyApp
puck -submit=auto ~/Documents/Work/FBReader-for-Android/FBReaderJ-release.apk
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/Users/dkzm/Library/Android/sdk
ndk.dir=/Users/dkzm/Library/Android/ndk/android-ndk-r10d
google.services.lib.dir=../FBreader_PlayServices/google-play-services_lib/
#yota.sdk.dir=/Users/dkzm/Library/Android/
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
java.encoding=utf-8
# proguard.config=proguard.cfg
# Project target.
target=android-21
android.library.reference.1=third-party/AmbilWarna
android.library.reference.2=third-party/drag-sort-listview/library
android.library.reference.3=third-party/android-filechooser/code
#android.library.reference.4=${yota.sdk.dir}
#android.library.reference.5=${google.services.lib.dir}
android.library.reference.4=../FBReader_PlayServices/google-play-services_lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment