1 <?xml version="1.0"?>
\r
2 <project name="Setup" default="setup" basedir=".">
\r
4 <target name="versioninfo">
\r
5 <nant target="versioninfo">
\r
7 <include name="..\..\versioninfo.build" />
\r
10 <loadfile file="VersionNumberInclude.in.wxi" property="versionwixfile">
\r
12 <replacetokens begintoken="$" endtoken="$">
\r
13 <token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
\r
14 <token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
\r
15 <token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
\r
16 <token key="WCREV" value="${environment::get-variable('WCREV')}" />
\r
20 <echo file="VersionNumberInclude.wxi" message="${versionwixfile}" />
\r
21 <property name="verstring" value="${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}.${environment::get-variable('WCREV')}" />
\r
22 <property name="msifilename" value="TortoiseSVN-${verstring}${devrelease}-${platform}-svn-1.6.0-dev" />
\r
25 <target name="setup" depends="versioninfo">
\r
26 <if test="${configuration == 'debug'}">
\r
27 <echo message="Cannot create an installer from debug binaries." />
\r
29 <if test="${configuration == 'release'}">
\r
31 <variable name="DictionaryENUS" value="0" />
\r
32 <variable name="DictionaryENGB" value="0" />
\r
33 <variable name="IncludeCrashReportDll" value="0" />
\r
36 <if test="${file::exists('..\..\..\Common\Spell\en_US.aff')}">
\r
38 <variable name="DictionaryENUS" value="1" />
\r
41 <if test="${file::exists('..\..\..\Common\Spell\en_GB.aff')}">
\r
43 <variable name="DictionaryENGB" value="1" />
\r
46 <if test="${file::exists('..\..\MYBUILD')}">
\r
48 <variable name="IncludeCrashReportDll" value="1" />
\r
51 <if test="${platform == 'x64'}">
\r
53 <variable name="Platform" value="x64" />
\r
56 <if test="${platform != 'x64'}">
\r
58 <variable name="Platform" value="win32" />
\r
62 <!-- find the path to the merge modules -->
\r
63 <script language="C#">
\r
66 public static void ScriptMain(Project project)
\r
68 project.Properties.Add("mergemodulepath", System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonProgramFiles)+"\\Merge Modules");
\r
74 <variable name="MergeModules" value="${mergemodulepath}" />
\r
77 <exec program="candle">
\r
78 <arg value="-nologo" />
\r
79 <arg value="-out" />
\r
80 <arg value="..\..\bin\" />
\r
81 <arg value="TortoiseSVN.wxs" />
\r
82 <arg value="FeaturesFragment.wxs" />
\r
83 <arg value="StructureFragment.wxs" />
\r
84 <arg value="UIFragment.wxs" />
\r
86 <exec program="light">
\r
87 <arg value="-nologo" />
\r
88 <arg value="-sw1055" />
\r
89 <arg value="-sice:ICE03" />
\r
90 <arg value="-sice:ICE82" />
\r
91 <arg value="-sice:ICE83" />
\r
92 <arg value="-sval" if="${platform == 'x64'}" />
\r
93 <arg value="-out" />
\r
94 <arg value="..\..\bin\${msifilename}.msi" />
\r
95 <arg value="..\..\bin\TortoiseSVN.wixobj" />
\r
96 <arg value="..\..\bin\FeaturesFragment.wixobj" />
\r
97 <arg value="..\..\bin\StructureFragment.wixobj" />
\r
98 <arg value="..\..\bin\UIFragment.wixobj" />
\r
102 <include name="..\..\bin\*.wixobj" />
\r
103 <include name="..\..\bin\*.wixpdb" />
\r
107 <if test="${devrelease == ''}">
\r
108 <exec program="gpg.exe" workingdir="..\..\bin">
\r
109 <arg value="-sba" />
\r
110 <arg value="--yes" />
\r
111 <arg value="--batch" />
\r
112 <arg value="--passphrase" />
\r
113 <arg value="${gpgpassphrase}" />
\r
114 <arg value="${msifilename}.msi" />
\r