Skip to content

Instantly share code, notes, and snippets.

@topgenorth
Created October 16, 2013 20:45
Show Gist options
  • Save topgenorth/7014544 to your computer and use it in GitHub Desktop.
Save topgenorth/7014544 to your computer and use it in GitHub Desktop.
Create the APK test server
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore /Users/tom/work/keystores/opgenorth-release-key.keystore -storepass **** -signedjar /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/bin/Release/CalabashExamples.Droid-signed-notaligned.apk /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/bin/Release/CalabashExamples.Droid.apk mytrips
adding: META-INF/MANIFEST.MF
adding: META-INF/MYTRIPS.SF
adding: META-INF/MYTRIPS.RSA
signing: res/drawable/icon.png
signing: res/drawable/invalid_edittext.xml
signing: res/layout/activity_creditcardvalidation.xml
signing: res/layout/activity_creditcardvalidation_success.xml
signing: res/layout/activity_location.xml
signing: res/layout/activity_login.xml
signing: res/layout/mainscreen_row.xml
signing: AndroidManifest.xml
signing: resources.arsc
signing: res/drawable-hdpi/icon.png
signing: res/drawable-mdpi/icon.png
signing: res/drawable-xhdpi/icon.png
signing: res/drawable-xxhdpi/icon.png
signing: NOTICE
signing: classes.dex
signing: assemblies/CalabashExamples.Droid.dll
signing: assemblies/Mono.Android.dll
signing: assemblies/mscorlib.dll
signing: assemblies/System.dll
signing: assemblies/Mono.Security.dll
signing: assemblies/System.Core.dll
signing: lib/armeabi-v7a/libmonodroid.so
signing: lib/x86/libmonodroid.so
zipalign -f -v 4 /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/bin/Release/CalabashExamples.Droid-signed-notaligned.apk /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk
Verifying alignment of /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk (4)...
50 META-INF/MANIFEST.MF (OK - compressed)
987 META-INF/MYTRIPS.SF (OK - compressed)
2008 META-INF/MYTRIPS.RSA (OK - compressed)
2724 res/drawable/icon.png (OK)
5968 res/drawable/invalid_edittext.xml (OK - compressed)
6361 res/layout/activity_creditcardvalidation.xml (OK - compressed)
6841 res/layout/activity_creditcardvalidation_success.xml (OK - compressed)
7300 res/layout/activity_location.xml (OK - compressed)
7712 res/layout/activity_login.xml (OK - compressed)
8312 res/layout/mainscreen_row.xml (OK - compressed)
8682 AndroidManifest.xml (OK - compressed)
9808 resources.arsc (OK)
19044 res/drawable-hdpi/icon.png (OK)
24772 res/drawable-mdpi/icon.png (OK)
28012 res/drawable-xhdpi/icon.png (OK)
36172 res/drawable-xxhdpi/icon.png (OK)
50514 NOTICE (OK - compressed)
50728 classes.dex (OK - compressed)
91684 assemblies/CalabashExamples.Droid.dll (OK)
112260 assemblies/Mono.Android.dll (OK)
677088 assemblies/mscorlib.dll (OK)
1989944 assemblies/System.dll (OK)
2251672 assemblies/Mono.Security.dll (OK)
2406388 assemblies/System.Core.dll (OK)
2439253 lib/armeabi-v7a/libmonodroid.so (OK - compressed)
3676654 lib/x86/libmonodroid.so (OK - compressed)
Verification succesful
==> APK for distribution: /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk
[workspace] $ /bin/sh -xe /var/folders/61/bhbtr4_51tx9bl3l5lqzl87m0000gn/T/hudson5898746803534046561.sh
+ calabash-android build /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk
/Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk is not signed with any of the available keystores.
Tried the following keystores:
/Users/tom/.android/debug.keystore
/Users/tom/.local/share/Xamarin/Mono for Android/debug.keystore
You can resign the app with /Users/tom/.android/debug.keystore by running:
calabash-android resign /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/calabashexamples.apk
Notice that resigning an app might break some functionality.
Getting a copy of the certificate used when the app was build will in general be more reliable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment