mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-23 16:18:50 -05:00
automate signature of release jars
This commit is contained in:
parent
416aafb940
commit
cb967cdd35
21
build.xml
21
build.xml
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user