forked from fuxs/teekesselchen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
62 lines (55 loc) · 2.28 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<project name="teekesselchen" default="dist" basedir=".">
<description>
simple example build file
</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="plugin-dev" location="build/teekesselchen.lrdevplugin"/>
<property name="plugin-dist" location="dist/teekesselchen.lrplugin"/>
<condition property="isMac">
<os family="mac" />
</condition>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<mkdir dir="${plugin-dev}"/>
</target>
<target name="build" depends="init" description="creates a development plugin folder" >
<copy todir="${plugin-dev}">
<fileset dir="src"/>
</copy>
<copy todir="${plugin-dev}">
<fileset dir="3rd/exiftool"/>
</copy>
<chmod file="${plugin-dev}/exiftool" perm="u+x" />
</target>
<target name="dist" depends="build" description="creates a plugin folder" >
<copy todir="${plugin-dist}">
<fileset dir="${plugin-dev}"/>
</copy>
<chmod file="${plugin-dist}/exiftool" perm="u+x" />
<zip destfile="${dist}/Teekesselchen V1_8.zip">
<fileset dir="${dist}">
<include name="*.lrplugin/**" />
</fileset>
</zip>
<checksum file="${dist}/Teekesselchen V1_8.zip" algorithm="MD5" format="MD5SUM"/>
<checksum file="${dist}/Teekesselchen V1_8.zip" algorithm="SHA-1" format="MD5SUM"/>
</target>
<target name="installer" depends="dist" description="creates an installer for mac" >
<exec executable="/Applications/PackageMaker.app/Contents/MacOS/PackageMaker">
<arg line="--doc mac/teekesselchen.pmdoc --out '${dist}/Teekesselchen V1_8.pkg'" />
</exec>
<checksum file="${dist}/Teekesselchen V1_8.pkg" algorithm="MD5" format="MD5SUM"/>
<checksum file="${dist}/Teekesselchen V1_8.pkg" algorithm="SHA-1" format="MD5SUM"/>
</target>
<target name="checksum" depends="dist" description="creates checksums for windows" >
<checksum file="${dist}/Setup.exe" algorithm="MD5" format="MD5SUM"/>
<checksum file="${dist}/Setup.exe" algorithm="SHA-1" format="MD5SUM"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>