1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

automate signature of release jars

This commit is contained in:
Jesse Vincent 2008-11-01 06:04:15 +00:00
parent 416aafb940
commit cb967cdd35

View File

@ -14,6 +14,8 @@
<!-- ************************************************************************************* -->
<!-- No user servicable parts below. -->
<property environment="env"/>
<property name="android-framework" value="${android-tools}/lib/framework.aidl" />
<property name="android-libs" value="${android-tools}/lib/" />
@ -69,6 +71,13 @@
<os family="windows"/>
</condition>
<property name="out-signed-package" value="${outdir}/${ant.project.name}-signed.apk" />
<condition property="out-signed-package-ospath"
value="${basedir}\${out-signed-package}"
else="${basedir}/${out-signed-package}" >
<os family="windows"/>
</condition>
<property name="out-unsigned-package" value="${outdir}/${ant.project.name}-unsigned.apk" />
<condition property="out-unsigned-package-ospath"
value="${basedir}\${out-unsigned-package}"
@ -238,7 +247,17 @@
<arg value="-rj" />
<arg value="${external-libs-ospath}" />
</exec>
<echo>It will need to be signed with jarsigner before being published.</echo>
<echo>Signing ${out-unsigned-package}</echo>
<exec executable="jarsigner" failonerror="true">
<arg value="-verbose" />
<arg value="-storepass" />
<arg value="${env.jarpass}" />
<arg value="-signedjar" />
<arg value="${out-signed-package-ospath}" />
<arg value="${out-unsigned-package-ospath}" />
<arg value="fsckcom" />
</exec>
</target>
<!-- Install the package on the default emulator -->