mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58: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. -->
|
<!-- No user servicable parts below. -->
|
||||||
|
|
||||||
|
<property environment="env"/>
|
||||||
|
|
||||||
<property name="android-framework" value="${android-tools}/lib/framework.aidl" />
|
<property name="android-framework" value="${android-tools}/lib/framework.aidl" />
|
||||||
<property name="android-libs" value="${android-tools}/lib/" />
|
<property name="android-libs" value="${android-tools}/lib/" />
|
||||||
|
|
||||||
@ -69,6 +71,13 @@
|
|||||||
<os family="windows"/>
|
<os family="windows"/>
|
||||||
</condition>
|
</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" />
|
<property name="out-unsigned-package" value="${outdir}/${ant.project.name}-unsigned.apk" />
|
||||||
<condition property="out-unsigned-package-ospath"
|
<condition property="out-unsigned-package-ospath"
|
||||||
value="${basedir}\${out-unsigned-package}"
|
value="${basedir}\${out-unsigned-package}"
|
||||||
@ -238,7 +247,17 @@
|
|||||||
<arg value="-rj" />
|
<arg value="-rj" />
|
||||||
<arg value="${external-libs-ospath}" />
|
<arg value="${external-libs-ospath}" />
|
||||||
</exec>
|
</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>
|
</target>
|
||||||
|
|
||||||
<!-- Install the package on the default emulator -->
|
<!-- Install the package on the default emulator -->
|
||||||
|
Loading…
Reference in New Issue
Block a user