Skip to content

Commit

Permalink
Add ant tasks for building mac osx package
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiARIA committed Oct 25, 2015
1 parent 4e4873e commit 2e8c997
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Lambda/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<property name="target-jar" value="lm.jar" />
<property name="dist-tgz" value="${product-name}.tar.gz" />
<property name="dist-zip" value="${product-name}.zip" />
<property name="dist-osx-name" value="${product-name}-osx" />

<path id="test.classpath">
<pathelement location="${classes.main}" />
Expand Down Expand Up @@ -60,6 +61,10 @@
</jar>
</target>

<target name="build-osx-app" depends="jar">
<exec executable="./build-mac-app.sh"></exec>
</target>

<target name="dist" depends="mkdir_dist,mkdir_product,jar">
<tar tarfile="${dir.dist}/${dist-tgz}" compression="gzip">
<tarfileset dir="." includes="${dist}/*.sh,${dist}/*.bat" mode="755" />
Expand All @@ -74,6 +79,24 @@
</zip>
</target>

<target name="dist-osx-tgz" depends="mkdir_dist,mkdir_product,build-osx-app">
<tar destfile="${dir.dist}/${dist-osx-name}.tgz" compression="gzip">
<tarfileset dir="product" includes="LambdaMagica.app/**/*" excludes="**/*.sh" prefix="lambda-magica" />
<tarfileset dir="product" includes="LambdaMagica.app/**/*.sh" prefix="lambda-magica" mode="755" />
<tarfileset dir="." includes="${dist}/*.sh" mode="755" />
<tarfileset dir="." includes="${dist}/**" excludes="**/*.sh,**/*.bat" />
</tar>
</target>

<target name="dist-osx-zip" depends="mkdir_dist,mkdir_product,build-osx-app">
<zip destfile="${dir.dist}/${dist-osx-name}.zip" encoding="UTF-8">
<zipfileset dir="product" includes="LambdaMagica.app/**/*" excludes="**/*.sh" prefix="lambda-magica" />
<zipfileset dir="product" includes="LambdaMagica.app/**/*.sh" prefix="lambda-magica" filemode="755" />
<zipfileset dir="." includes="${dist}/*.sh" filemode="755" />
<zipfileset dir="." includes="${dist}/**" excludes="**/*.sh,**/*.bat" />
</zip>
</target>

<target name="distribute" depends="dist,zip">
</target>

Expand Down

0 comments on commit 2e8c997

Please sign in to comment.