[mono-android] Mono for Android and NAnt
Matt
moconnor at obdsoftware.net
Wed Jun 27 01:08:07 UTC 2012
I am using nant to build and package my apk. Here is my build target:
<target name="build">
<msbuild project="${projectfile}" target="SignAndroidPackage"
verbose="${verbose}">
<property name="Configuration" value="${configuration}"
verbose="${verbose}" />
</msbuild>
<delete file="bin\OCTech.Mobile.Applications.TouchScan.apk"
failonerror="true" verbose="${verbose}"/>
<call target="zipalign" verbose="${verbose}"/>
<delete file="bin\OCTech.Mobile.Applications.TouchScan-Signed.apk"
failonerror="true" verbose="${verbose}"/>
<call target="release" verbose="${verbose}"/>
</target>
<target name="zipalign">
<exec program="${androidZipAlign}" verbose="${verbose}">
<arg value="-v"/>
<arg value="4"/>
<arg file="bin\OCTech.Mobile.Applications.TouchScan-Signed.apk"/>
<arg file="bin\OCTech.Mobile.Applications.TouchScan.apk"/>
</exec>
</target>
A couple of notes:
1) You'll need to set the ${androidZipAlign} property to the zipalign exe in
the Android sdk
2) My release target just copies the apk to another directory.
- Matt
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Mono-for-Android-and-NAnt-tp5710581p5710583.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list