-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaka-release.HOWTO
74 lines (45 loc) · 2.56 KB
/
aka-release.HOWTO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
ANDROIDOMATIC KEYER RELEASE PROCESS
===================================
This process is the official way to push a new release of AKA to
Android Market; it's mostly concerned with signing the release with
the proper release-keys, which are required for publishing.
For experimental test releases (alphas, etc), no key-signing is
required. Testers simply need to have their Android configured to
accept unsigned packages from 'unknown sources'.
1. Bump the version number
In AndroidManifest.xml, bump the versionCode and versionName
attributes.
- versionCode is the one which really matters: you MUST increase
the integer monotonically. This is what android Market looks at
to notice that the new .apk is an 'upgrade' from the prior one.
- versionName can be whatever we want (i.e. 1.2.6), and it's what we
display to the user on startup. In other words, this is 'public'
release name.
- for AKA, we're trying to keep these values relatively synced:
versionName 1.0 == versionCode 10, versionName 1.1 == versionCode 11, etc.
- For cleanliness, make these two number changes as a single 'hg
commit', and then immediately tag the codebase afterwards,
e.g. 'hg tag 1.2', so we have a bookmark of the exact code we released.
2. Export an *unsigned* .apk from Eclipse.
Right-click the project folder, then choose 'Android Tools->Export
Unsigned Application Package".
(Eclipse normally builds a 'debug' .apk which is signed by a
standard lame debug-key. Market will not accept this key signature;
it requires a signature from key we generate ourselves.)
3. Sign the .apk with our own "official" developer private key.
Make sure you have the shared AKA key (and password) available,
(templaro.keystore) then run:
$ jarsigner -verbose -keystore templaro.keystore AndroidomaticKeyer.apk templaro
After signing, you can verify the sig:
$ jarsigner -verify -verbose AndroidomaticKeyer.apk
Then run 'zipalign' on it to make it memory-efficient at runtime:
$ android-sdk-mac_x86/tools/zipalign -v 4 ~/Desktop/AndroidomaticKeyer.apk AKA.apk
4. Upload the final AKA.apk to Google Code
Use the 'Downloads' tab to upload the package. Be sure to label the
package as 'Featured' so it shows up on the front page, and label
the old package as 'Deprecated' so it's not listed to the public
anymore.
5. Upload the new AKA.apk to Android Market -- may have to do as sussman.
Log into the '[email protected]" GAIA account at
http://market.android.com/publish. Upload the new .apk and
'publish' it with a description of recent changes.