[mono-android] Mono for Android and NAnt
Sayed Arian Kooshesh
kooshesh at gmail.com
Wed Jun 27 03:06:46 UTC 2012
i know this isn't helpful but apache, please stop trying to build the world
for every small thing (ant, nant, etc) :D
On Tue, Jun 26, 2012 at 8:08 PM, Matt <moconnor at obdsoftware.net> wrote:
> 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.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
--
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.
-Wozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120626/5a097970/attachment-0001.html>
More information about the Monodroid
mailing list