root/release-kits/wirk2/ant-scripts/create-installer.xml @ 17378

Revision 17378, 2.5 KB (checked in by oranfry, 11 years ago)

use the individually zipped components instead of loose files

Line 
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        <unjar src="${wirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
22        <delete dir="${basedir}/installer/classes/META-INF"/>
23        <unjar src="${wirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
24        <delete dir="${basedir}/installer/classes/META-INF"/>
25    </target>
26
27    <target name="compile-installer">
28       
29        <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
30            compress="true"
31            extractType="NonExtractor"
32            installConfig="${basedir}/installer/antinstall-config.xml"
33            buildFile="${basedir}/installer/build.xml"
34            antInstallLib="${wirk2.home}/packages/ant-installer/lib"
35            antLib="${wirk2.home}/packages/ant/lib"
36            validateConfig="true"
37            icons="bluecurve">
38           
39            <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
40            <zipfileset dir="${basedir}/components" includes="*.lzma" />
41        </installer>
42       
43        <dcff file="${basedir}/installer/antinstall-config.xml" startTag=".*&lt;!-- start full --&gt;.*" endTag=".*&lt;!-- end full --&gt;.*" />
44       
45        <installer file="${basedir}/installer/Greenstone-${version}-win32-minimal.jar"
46            compress="true"
47            extractType="NonExtractor"
48            installConfig="${basedir}/installer/antinstall-config.xml"
49            buildFile="${basedir}/installer/build.xml"
50            antInstallLib="${wirk2.home}/packages/ant-installer/lib"
51            antLib="${wirk2.home}/packages/ant/lib"
52            validateConfig="true"
53            icons="bluecurve">
54           
55            <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
56            <zipfileset dir="${basedir}/components" includes="core.lzma" />
57        </installer>
58       
59    </target>
60   
61</project>
Note: See TracBrowser for help on using the browser.