mozilla / apk-factory-service

Web service which converts Open Web Apps into native Android apps
42 stars 18 forks source link

Break signinging out of generator ant build process #19

Closed ozten closed 10 years ago

ozten commented 10 years ago

We need to isolate the signing step so that it can be performed on a different service using an HSM.

jhugman commented 10 years ago

This requires two steps:

Building an unsigned APK

Currently, the location of the keystore and various configuration is stored in the project.properties directory. Removing these will cause the current invocation of ant clean release to produce an unsigned APK to be produced. This is found in bin/${manifest.name}-release-unsigned.apk. Official documentation

Post signing

Use the zipalign tool to optimize the signed APK.

 zipalign -v 4 your_project_name-signed.apk your_project_name.apk

Official documentation

ozten commented 10 years ago

Moved to https://bugzilla.mozilla.org/show_bug.cgi?id=960225

Closing.