1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk3-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 rk3-targets -->
|
---|
7 | <antcall target="compile-installer"/>
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="copy-installer-files">
|
---|
11 | <echo>Getting things ready to compile the installer</echo>
|
---|
12 | <mkdir dir="${basedir}/installer/resources"/>
|
---|
13 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" overwrite="true" />
|
---|
14 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" overwrite="true" />
|
---|
15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
16 | <fileset dir="${lirk3.home}/greenstone3/installer-classes"/>
|
---|
17 | <fileset file="${basedir}/distribution/greenstone3/LICENSE.txt"/>
|
---|
18 | </copy>
|
---|
19 |
|
---|
20 | <unjar src="${lirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
21 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
22 |
|
---|
23 | <unjar src="${lirk3.home}/ant-scripts/tasks/7z-ant/7z.jar" dest="${basedir}/installer/classes"/>
|
---|
24 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
25 |
|
---|
26 | </target>
|
---|
27 |
|
---|
28 | <target name="compile-installer">
|
---|
29 |
|
---|
30 | <installer file="${basedir}/installer/greenstone3.jar"
|
---|
31 | compress="true"
|
---|
32 | extractType="NonExtractor"
|
---|
33 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
34 | buildFile="${basedir}/installer/build.xml"
|
---|
35 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
36 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
37 | validateConfig="true"
|
---|
38 | icons="bluecurve">
|
---|
39 |
|
---|
40 | <zipfileset dir="${basedir}/installer/classes" includes="**/*"/>
|
---|
41 | <zipfileset dir="${basedir}/components" includes="*.lzma"/>
|
---|
42 | </installer>
|
---|
43 |
|
---|
44 | <dcff
|
---|
45 | file="${basedir}/installer/antinstall-config.xml"
|
---|
46 | startTag=".*<!-- start full -->"
|
---|
47 | endTag=".*<!-- end full -->"/>
|
---|
48 |
|
---|
49 | <installer file="${basedir}/installer/Greenstone-${version}-linux-minimal.jar"
|
---|
50 | compress="true"
|
---|
51 | extractType="NonExtractor"
|
---|
52 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
53 | buildFile="${basedir}/installer/build.xml"
|
---|
54 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
55 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
56 | validateConfig="true"
|
---|
57 | icons="bluecurve">
|
---|
58 |
|
---|
59 | <zipfileset dir="${basedir}/installer/classes" includes="**/*"/>
|
---|
60 | <zipfileset dir="${basedir}/components" includes="core.lzma"/>
|
---|
61 | </installer>
|
---|
62 |
|
---|
63 |
|
---|
64 | </target>
|
---|
65 |
|
---|
66 | </project>
|
---|