1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="wirk3-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 |
|
---|
12 | <echo>Getting things ready to compile the installer</echo>
|
---|
13 |
|
---|
14 | <!-- the installer descriptors -->
|
---|
15 | <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml" overwrite="true" />
|
---|
16 | <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml" overwrite="true" />
|
---|
17 |
|
---|
18 | <!-- the language files and other canned classes for the installer -->
|
---|
19 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
20 | <fileset dir="${wirk3.home}/windows/installer-classes"/>
|
---|
21 | <fileset dir="${wirk3.home}/greenstone3/installer-classes"/>
|
---|
22 | </copy>
|
---|
23 |
|
---|
24 | <!-- some classes from jars, unpacked to be repacked into installer -->
|
---|
25 | <unjar src="${wirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
26 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
27 |
|
---|
28 | </target>
|
---|
29 |
|
---|
30 | <target name="compile-installer">
|
---|
31 | <!--<exec executable="7z.exe" dir="${basdir}/distribution"><arg line="-t7z -mx=9 greenstone3 greenstone3.lzma"/></exec>-->
|
---|
32 |
|
---|
33 | <installer file="${basedir}/installer/Greenstone-${version}-win32.jar"
|
---|
34 | compress="true"
|
---|
35 | extractType="NonExtractor"
|
---|
36 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
37 | buildFile="${basedir}/installer/build.xml"
|
---|
38 | antInstallLib="${wirk3.home}/packages/ant-installer/lib"
|
---|
39 | antLib="${wirk3.home}/packages/ant/lib"
|
---|
40 | validateConfig="true"
|
---|
41 | icons="bluecurve">
|
---|
42 |
|
---|
43 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
44 | <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*" />
|
---|
45 |
|
---|
46 | </installer>
|
---|
47 |
|
---|
48 | </target>
|
---|
49 |
|
---|
50 | </project>
|
---|