-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-win-installer.xml
68 lines (55 loc) · 2.22 KB
/
build-win-installer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<project name="VStarWinInstaller" default="installer" basedir=".">
<description>
Ant build file for VStar Windows Installer.
This works under Windows only.
Inno Setup Compiler (https://jrsoftware.org/isinfo.php)
must be installed (see InnoSetupCompiler property).
Create VStar Windows package (vstar-win.zip) and the plug-in bundle first:
ant win
cd plugin
ant aavso
cd ..
Then use
ant -f build-win-installer.xml
command to make the installer.
Do not forget to set the correct application version (app_version property)!
</description>
<!-- Do not forget to set the correct app_version! -->
<property name="app_version" value ="2.24.0"/>
<!-- VStar zipped Windows package -->
<property name="windows_bundle" location ="vstar-win.zip"/>
<!-- VStar zipped plugin package -->
<property name="plugin_bundle" location ="plugin/vstar-plugins.zip"/>
<!-- Directory to hold temporary files -->
<property name="win_install_dir" location="win-install"/>
<!-- Directory with additional installer files (images etc.) -->
<property name="installer_files" location="install-files"/>
<!-- Path to InnoSetupCompiler -->
<property name="InnoSetupCompiler" location="C:/Program Files (x86)/Inno Setup 6/ISCC.exe"/>
<target name="installer" description="Generate Windows installer.">
<mkdir dir="${win_install_dir}"/>
<delete includeemptydirs="true">
<fileset dir="${win_install_dir}" includes="**/*" />
</delete>
<unzip src="${windows_bundle}" dest="${win_install_dir}">
<patternset>
<include name="/"/>
</patternset>
</unzip>
<unzip src="${plugin_bundle}" dest="${win_install_dir}">
<patternset>
<include name="/"/>
</patternset>
</unzip>
<copy file="${installer_files}/VStarSetup.iss" todir="${win_install_dir}"/>
<copy file="${installer_files}/tenstar_artist_conception1.bmp" todir="${win_install_dir}"/>
<copy file="${installer_files}/aavso.bmp" todir="${win_install_dir}"/>
<exec executable="${InnoSetupCompiler}" failonerror="true">
<arg value="${win_install_dir}/VStarSetup.iss"/>
<arg value="/DTheAppVersion=${app_version}"/>
</exec>
<delete includeemptydirs="true">
<fileset dir="${win_install_dir}" includes="**/*" />
</delete>
</target>
</project>