Project

General

Profile

Bug #3144 ยป install.xml

Sean Riddle, 04/11/2008 02:06 PM

 
1
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
2

    
3
<!-- 
4
	A sample installation file.
5
	Use it as a base for your own installers :-)
6
	
7
	To compile it :
8
	- go in the bin directory where you installed IzPack
9
	- call "compile ../sample/install.xml -b ../sample"
10
-->
11

    
12
<installation version="1.0">
13

    
14

    
15

    
16
	<!-- 
17
		The info section.
18
		The meaning of the tags should be natural ...
19
	-->
20
	<info>
21
		<appname>Kepler</appname>
22
		<appversion>1.0.0</appversion>
23
		<url>http://www.kepler-project.org</url>
24
	</info> 
25
  
26
	
27
	<!-- 
28
		The gui preferences indication.
29
		Sets the installer window to 800x600. It will not be able to change the size.
30
	-->
31
	<guiprefs width="800" height="600" resizable="no"/>
32
	
33
	<locale>
34
		<langpack iso3="eng"/>
35
	</locale>
36
	
37
	<variables>
38
		<variable name="DesktopShortcutCheckboxEnabled" value="true"/>
39
	</variables>
40
	
41
	<conditions>
42
	  <condition type="packselection" id="r-mac-selected">
43
		<packid>r-2.6.2-mac</packid>
44
	  </condition>
45
	</conditions>
46

    
47
	<!-- 
48
		The resources section.
49
		The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
50
	-->
51
	<resources>
52
		<res id="InfoPanel.info" src="README.txt"/>
53
		<res src="installer/build/border1.png" id="Installer.image.0"/>
54
		<res src="installer/build/border2.png" id="Installer.image.1"/>
55
		<res src="installer/build/border3.png" id="Installer.image.2"/>
56
		<res src="installer/build/border4.png" id="Installer.image.3"/>
57
		<res src="installer/build/border5.png" id="Installer.image.4"/>
58
		<res src="installer/build/border5.png" id="Installer.image.5"/>
59
		<res src="installer/build/border6.png" id="Installer.image.6"/>
60
		<res src="installer/build/border7.png" id="Installer.image.7"/>
61
		<res src="installer/build/border8.png" id="Installer.image.8"/>
62
		<res src="installer/build/shortcutSpec.xml" id="shortcutSpec.xml"/>
63
	</resources>
64
	
65
	<native type="izpack" name="ShellLink.dll"/>
66

    
67
	<!-- 
68
		The panels section.
69
		We indicate here which panels we want to use. The order will be respected.
70
	-->
71
	<panels>
72
		<panel classname="HelloPanel"/>
73
		<panel classname="InfoPanel"/>
74
		<panel classname="TargetPanel"/> 
75
		<panel classname="PacksPanel"/>
76
		<panel classname="InstallPanel"/>
77
		<panel classname="ShortcutPanel"/>
78
		<panel classname="SimpleFinishPanel"/>
79
	</panels>
80
	
81
	<!-- 
82
		The packs section.
83
		We specify here our packs.
84
	-->
85
	
86
	
87
	<packs>
88
		<pack name="Base" required="yes">
89
			<description>The base files</description>			
90
			
91
			<file targetdir="$INSTALL_PATH/" src="lib/cplibs.bat" os="windows"/>
92
			<file targetdir="$INSTALL_PATH/" src="lib/setclasspath.bat" os="windows"/>
93
			<parsable targetfile="$INSTALL_PATH/cplibs.bat" os="windows"/>
94
			<parsable targetfile="$INSTALL_PATH/setclasspath.bat" os="windows"/>
95
			<executable targetfile="$INSTALL_PATH/cplibs.bat" os="windows" stage="postinstall" keep="true" failure="warn"/>
96
			
97
			
98
			
99
			
100
			<file targetdir="$INSTALL_PATH/kepler.app/Kepler/" src="lib/cplibs.sh" os="mac"/>
101
			<parsable targetfile="$INSTALL_PATH/kepler.app/Kepler/cplibs.sh" os="mac"/>
102
			<executable targetfile="$INSTALL_PATH/kepler.app/Kepler/cplibs.sh" os="mac" stage="postinstall" keep="true" failure="warn"/>
103
			<executable targetfile="$INSTALL_PATH/kepler.app/Kepler/lib/RemoveDotKepler.jar" type="jar" class="RemoveDotKepler" stage="postinstall" keep="true" failure="warn"/> 
104
			
105
			<file src="kepler.app" targetdir="$INSTALL_PATH" os="mac"/>
106
			
107
					
108
			<fileset dir="" targetdir="$INSTALL_PATH/kepler.app/Kepler/" os="mac">
109
				<exclude name="install.jar"/>
110
				<exclude name="src/"/>
111
				<exclude name="build-nmi/"/>
112
				<exclude name="build/classes/"/>
113
				<exclude name="build/configs/"/>
114
				<exclude name="build/icons/"/>
115
				<exclude name="build/src/"/>
116
				<exclude name="build/tmp/"/>
117
				<exclude name="build/kepler-configs.jar/"/>
118
				<exclude name="cog/"/>
119
				<exclude name="tests/"/>
120
				<exclude name="website/"/>
121
				<exclude name="webservice"/>
122
				<exclude name="lib/nddp/"/> 
123
				<exclude name="lib/installer"/>
124
				<exclude name="lib/nightlybuild/"/>
125
				<exclude name="website/"/>
126
				<exclude name="R.zip"/>
127
				<exclude name="configs/nddp/"/>
128
				<exclude name="configs/spa/"/>
129
				<exclude name="lib/cplibs.bat"/>
130
				<exclude name="lib/setclasspath.bat"/>
131
				<exclude name="lib/cplibs.sh"/>
132
				<exclude name="demos/ENM/GARP_MultipleSpecies-V-dist2.xml"/>
133
				<exclude name="demos/ENM/GARP_MultipleSpecies-V-distributed.xml"/>
134
				<exclude name="kepler.app"/>
135
			</fileset>
136
			<fileset dir="" targetdir="$INSTALL_PATH/" os="windows">
137
				<exclude name="install.jar"/>
138
				<exclude name="src/"/>
139
				<exclude name="build-nmi/"/>
140
				<exclude name="build/classes/"/>
141
				<exclude name="build/configs/"/>
142
				<exclude name="build/icons/"/>
143
				<exclude name="build/src/"/>
144
				<exclude name="build/tmp/"/>
145
				<exclude name="build/kepler-configs.jar/"/>
146
				<exclude name="cog/"/>
147
				<exclude name="tests/"/>
148
				<exclude name="website/"/>
149
				<exclude name="webservice"/>
150
				<exclude name="lib/nddp/"/> 
151
				<exclude name="lib/installer"/>
152
				<exclude name="lib/nightlybuild/"/>
153
				<exclude name="website/"/>
154
				<exclude name="R.zip"/>
155
				<exclude name="configs/nddp/"/>
156
				<exclude name="configs/spa/"/>
157
				<exclude name="lib/cplibs.bat"/>
158
				<exclude name="lib/setclasspath.bat"/>
159
				<exclude name="lib/cplibs.sh"/>
160
				<exclude name="demos/ENM/GARP_MultipleSpecies-V-dist2.xml"/>
161
				<exclude name="demos/ENM/GARP_MultipleSpecies-V-distributed.xml"/>
162
				<exclude name="kepler.app"/>
163
			</fileset>
164
		</pack> 
165
		<!--<pack name="R (2.6.2) windows" required="no" os="windows">
166
			<description>R (2.6.2) for Windows</description>
167
			<file targetdir="$INSTALL_PATH2/" src="R-2.6.2-win.zip" os="windows" unpack="true"/>
168
		</pack>-->
169
		<pack name="R (2.6.2) osx" required="no" os="mac" id="r-2.6.2-mac">
170
			<description>R (2.6.2) for Mac OSX - If you choose to install this option, the R installer will be launched at the completion of the Kepler installation.</description>
171
			<parsable targetfile="$INSTALL_PATH/kepler.app/Kepler/loaddmg.sh"/>
172
			<file targetdir="$INSTALL_PATH/kepler.app/Kepler/" src="R-2.6.2-osx.dmg" os="mac" unpack="false"/>
173
			<executable type="bin" stage="never" targetfile="$INSTALL_PATH/kepler.app/Kepler/loaddmg.sh" os="mac" />
174
			<executable type="bin" stage="postinstall" targetfile="$INSTALL_PATH/kepler.app/Kepler/loaddmg.sh" os="mac" failure="ask"/>
175
		</pack>
176
		<pack name="Sources" required="no">
177
			<description>Kepler Source Files</description>
178
			<fileset dir="src" targetdir="$INSTALL_PATH/src">
179
				<exclude name="org/nddp/"/>
180
				<exclude name="org/monash/"/>
181
			</fileset>
182
		</pack>	 
183
	</packs>
184
</installation>
    (1-1/1)