fix signing issues

This commit is contained in:
Neale Pickett 2012-05-26 20:41:05 -06:00
parent fdc7211262
commit a98a9cd806
3 changed files with 22 additions and 5 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.woozle.penaltytimer" package="org.woozle.penaltytimer"
android:versionCode="2" android:versionCode="4"
android:versionName="1.0"> android:versionName="1.1">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" /> <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>
<application android:label="@string/app_name" android:description="@string/description" android:icon="@drawable/ic_launcher"> <application android:label="@string/app_name" android:description="@string/description" android:icon="@drawable/ic_launcher">

View File

@ -1,13 +1,30 @@
ALIAS = dartcatcher
KEYSTORE = /home/neale/.local/android.keystore
SDK = /opt/android-sdk
ZIPALIGN = $(SDK)/tools/zipalign
default: release-install
install: debug-install install: debug-install
debug-install: bin/PenaltyTimer-debug.apk debug-install: bin/PenaltyTimer-debug.apk
adb install -r $< adb install -r $<
release: bin/PenaltyTimer-release.apk release: bin/PenaltyTimer-release.apk
release-install: bin/PenaltyTimer-release.apk
adb install -r $<
clean: clean:
ant clean ant clean
bin/PenaltyTimer-release.apk: src/org/woozle/penaltytimer/* res/*/* bin/PenaltyTimer-release.apk: bin/PenaltyTimer-release-unaligned.apk
$(ZIPALIGN) -v 4 $< $@
bin/PenaltyTimer-release-unaligned.apk: bin/PenaltyTimer-release-unsigned.apk
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore $(KEYSTORE) -signedjar $@ $< $(ALIAS)
bin/PenaltyTimer-release-unsigned.apk: src/org/woozle/penaltytimer/* res/*/*
ant release ant release
bin/PenaltyTimer-debug.apk: src/org/woozle/penaltytimer/* res/*/* bin/PenaltyTimer-debug.apk: src/org/woozle/penaltytimer/* res/*/*

View File

@ -14,5 +14,5 @@
# 'key.store' for the location of your keystore and # 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use. # 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target. # The password will be asked during the build when you use the 'release' target.
key.store = /home/neale/.local/android.keystore #key.store = /home/neale/.local/android.keystore
key.alias = dartcatcher #key.alias = dartcatcher