1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="wirk2-create-installer" default="create-installer">
|
---|
3 |
|
---|
4 | <target name="create-installer">
|
---|
5 | <antcall target="copy-installer-files"/>
|
---|
6 | <antcall target="make-installer-files-concrete"/> <!-- from rk2-targets -->
|
---|
7 | <antcall target="compile-installer"/>
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="copy-installer-files">
|
---|
11 | <echo>Copying installer files</echo>
|
---|
12 | <mkdir dir="${basedir}/installer/classes"/>
|
---|
13 | <copy todir="${basedir}/installer" file="${wirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
|
---|
14 | <copy todir="${basedir}/installer" file="${wirk2.home}/installer/build.xml" overwrite="true"/>
|
---|
15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
16 | <fileset dir="${wirk2.home}/greenstone2/installer-classes"/>
|
---|
17 | <fileset dir="${wirk2.home}/windows/installer-classes"/>
|
---|
18 | <fileset dir="${wirk2.home}/packages/7za" includes="7za.exe"/>
|
---|
19 | <fileset file="${basedir}/distributions/web/LICENSE.txt"/>
|
---|
20 | </copy>
|
---|
21 |
|
---|
22 | <unjar src="${wirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
23 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
24 |
|
---|
25 | <unjar src="${wirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
|
---|
26 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
27 |
|
---|
28 | </target>
|
---|
29 |
|
---|
30 | <target name="compile-installer">
|
---|
31 |
|
---|
32 | <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
|
---|
33 | compress="true"
|
---|
34 | extractType="NonExtractor"
|
---|
35 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
36 | buildFile="${basedir}/installer/build.xml"
|
---|
37 | antInstallLib="${wirk2.home}/packages/ant-installer/lib"
|
---|
38 | antLib="${wirk2.home}/packages/ant/lib"
|
---|
39 | validateConfig="true"
|
---|
40 | icons="bluecurve">
|
---|
41 |
|
---|
42 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
43 | <zipfileset dir="${basedir}/components" includes="*.lzma" />
|
---|
44 | </installer>
|
---|
45 |
|
---|
46 | <dcff file="${basedir}/installer/antinstall-config.xml" startTag=".*<!-- start full -->.*" endTag=".*<!-- end full -->.*" />
|
---|
47 |
|
---|
48 | <installer file="${basedir}/installer/Greenstone-${version}-win32-minimal.jar"
|
---|
49 | compress="true"
|
---|
50 | extractType="NonExtractor"
|
---|
51 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
52 | buildFile="${basedir}/installer/build.xml"
|
---|
53 | antInstallLib="${wirk2.home}/packages/ant-installer/lib"
|
---|
54 | antLib="${wirk2.home}/packages/ant/lib"
|
---|
55 | validateConfig="true"
|
---|
56 | icons="bluecurve">
|
---|
57 |
|
---|
58 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
59 | <zipfileset dir="${basedir}/components" includes="core.lzma" />
|
---|
60 | </installer>
|
---|
61 |
|
---|
62 | </target>
|
---|
63 |
|
---|
64 | </project>
|
---|