-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
41 lines (37 loc) · 1.25 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
<project name="GRIN-GET" default="main">
<condition property="is_windows">
<os family="windows"/>
</condition>
<condition property="is_unix">
<os family="unix" />
</condition>
<target name="make_archive">
<copy todir="build/grin/bin">
<fileset dir="bin" />
<filterset>
<filter token="GRIN_VERSION" value="1.2.4" />
</filterset>
</copy>
<copy todir="build/grin/lib">
<fileset dir="lib" />
</copy>
<zip zip64Mode="never" destfile="build/grin-get.zip" basedir="build/grin" />
</target>
<target name="if_windows" if="is_windows" depends="make_archive">
<exec executable="certutil">
<arg value="-encode" />
<arg value="build/grin-get.zip" />
<arg value="build/grin-get.zip.base64" />
</exec>
</target>
<target name="if_unix" if="is_unix" depends="make_archive">
<exec executable="base64">
<arg value="-i" />
<arg value="build/grin-get.zip" />
<arg value="-o" />
<arg value="build/grin-get.zip.base64" />
</exec>
</target>
<target name="main" depends="if_windows, if_unix">
</target>
</project>