OSDN Git Service

Fix TortoiseGitBlame build problem and update version number and changelog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseGitSetup / staticsetup.build
1 <?xml version="1.0"?>\r
2 <project name="Setup" default="setup" basedir=".">\r
3 \r
4         <target name="versioninfo">\r
5                 <nant target="versioninfo">\r
6                         <buildfiles>\r
7                                 <include name="..\..\versioninfo.build" />\r
8                         </buildfiles>\r
9                 </nant>\r
10                 <loadfile file="VersionNumberInclude.in.wxi" property="versionwixfile">\r
11                         <filterchain>\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
17                                 </replacetokens>\r
18                         </filterchain>\r
19                 </loadfile>\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         </target>\r
23 \r
24         <target name="setup" depends="versioninfo">\r
25                 <if test="${configuration == 'debug'}">\r
26                         <echo message="Cannot create an installer from debug binaries." />\r
27                 </if>\r
28                 <if test="${configuration == 'release'}">\r
29                   <setenv>\r
30                           <variable name="Platform" value="win32" />\r
31                   </setenv>\r
32                   <exec program="candle">\r
33                           <arg value="-nologo" />\r
34                           <arg value="-out" />\r
35                           <arg value="..\..\bin\" />\r
36                           <arg value="SubWCRev.wxs" />\r
37                   </exec>\r
38                   <exec program="light">\r
39                           <arg value="-nologo" />\r
40                           <arg value="-out" />\r
41                           <arg value="..\..\bin\SubWCRev-${verstring}.msi" />\r
42                           <arg value="..\..\bin\SubWCRev.wixobj" />\r
43                         <arg value="-ext" />\r
44                         <arg value="WixUIExtension" />\r
45                         <arg value="-cultures:en-us" />\r
46                   </exec>\r
47                   <delete>\r
48                           <fileset>\r
49                                   <include name="..\..\bin\*.wixobj" />\r
50                           </fileset>\r
51                   </delete>\r
52                 \r
53                   <if test="${devrelease == ''}">\r
54                           <exec program="gpg.exe">\r
55                                   <arg value="-sba" />\r
56                                   <arg value="--yes" />\r
57                                   <arg value="--batch" />\r
58                                   <arg value="--passphrase" />\r
59                                   <arg value="${gpgpassphrase}" />\r
60                                   <arg value="..\..\bin\SubWCRev-${verstring}.msi" />\r
61                           </exec>\r
62                   </if>\r
63                 </if>\r
64         </target>\r
65 \r
66 </project>\r
67 \r