source: release-kits/wirk2/ant-scripts/create-installer.xml@ 17414

Last change on this file since 17414 was 17414, checked in by oranfry, 13 years ago

for windows, going back to the commandline tool method for compressing and extracting lzma

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