Added a release-lite target to the build script

pull/14/head
Sam Bosley 12 years ago
parent dec4a0d335
commit 56ca0030f9

@ -214,6 +214,29 @@
replace="\1${custom.version.name}" />
<antcall target="release" />
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
</target>
<!-- build lite release package with updated version name -->
<target name="release-lite" depends="clean">
<fail message="need to set custom.version.name">
<condition>
<not>
<isset property="custom.version.name" />
</not>
</condition>
</fail>
<copy file="AndroidManifest.xml" tofile="AndroidManifest_old.xml" />
<replaceregexp file="AndroidManifest.xml"
match="(android:versionName=&quot;[^&quot; ]*)[^&quot;]*"
replace="\1${custom.version.name}" />
<replaceregexp file="${source.dir}/com/todoroo/astrid/utility/Constants.java"
match="ASTRID_LITE = .*"
replace="ASTRID_LITE = true;" />
<antcall target="release" />
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
</target>

@ -85,6 +85,13 @@
</subant>
</target>
<target name="release-lite" depends="get-version">
<subant target="release-lite">
<fileset file="astrid/build.xml" />
<property name="custom.version.name" value="-lite" />
</subant>
</target>
<target name="debug">
<subant>
<fileset file="astrid/build.xml" />

Loading…
Cancel
Save