Merge lp:~charlie.poole/nunit-3.0/build-script into lp:~nunit-core/nunit-3.0/trunk-before-upgrade

Proposed by Charlie Poole
Status: Merged
Approved by: Charlie Poole
Approved revision: 20
Merged at revision: not available
Proposed branch: lp:~charlie.poole/nunit-3.0/build-script
Merge into: lp:~nunit-core/nunit-3.0/trunk-before-upgrade
Diff against target: None lines
To merge this branch: bzr merge lp:~charlie.poole/nunit-3.0/build-script
Reviewer Review Type Date Requested Status
NUnit Developers Pending
Review via email: mp+10570@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charlie Poole (charlie.poole) wrote :

Changes to allow building windows install project from the NAnt script.

17. By Charlie Poole

Add missing files to VS solutions source

18. By Charlie Poole

Remove one level from default install location

19. By Charlie Poole

Use WixUI_FeatureTree rather than WixUI_Mondo dialog set

20. By Charlie Poole

Add custom bitmpaps to the installer UI

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'install/License.rtf'
2--- install/License.rtf 2009-08-11 23:27:25 +0000
3+++ install/License.rtf 2009-08-22 19:25:48 +0000
4@@ -1,23 +1,12 @@
5 {\rtf1\ansi\ansicpg1252\deff0\deflang3079{\fonttbl{\f0\fmodern\fprq1\fcharset0 Courier New;}}
6-{\*\generator Msftedit 5.41.21.2508;}\viewkind4\uc1\pard\f0\fs20 Copyright (c) 2004-2009 Charlie Poole\par
7-\par
8-\pard\ri70 Permission is hereby granted, free of charge, to any person obtaining a copy\par
9-\pard of this software and associated documentation files (the "Software"), to deal\par
10-in the Software without restriction, including without limitation the rights\par
11-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\par
12-copies of the Software, and to permit persons to whom the Software is\par
13-furnished to do so, subject to the following conditions:\par
14-\par
15-The above copyright notice and this permission notice shall be included in\par
16-all copies or substantial portions of the Software.\par
17-\par
18-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\par
19-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\par
20-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\par
21-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\par
22-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\par
23-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\par
24-THE SOFTWARE.\par
25+{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 Copyright (c) 2009 Charlie Poole\par
26+\par
27+\pard\ri70 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\par
28+\pard copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
29+\par
30+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par
31+\par
32+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par
33 \par
34 }
35
36\ No newline at end of file
37
38=== removed file 'install/NUnit.Framework.Installer/Definitions.wxi'
39--- install/NUnit.Framework.Installer/Definitions.wxi 2009-08-11 23:27:25 +0000
40+++ install/NUnit.Framework.Installer/Definitions.wxi 1970-01-01 00:00:00 +0000
41@@ -1,7 +0,0 @@
42-<?xml version="1.0" encoding="utf-8"?>
43-<Include>
44- <!-- Most of the definitions will be passed by the build script. -->
45- <?define NominalVersion="3.0"?>
46- <?define ProductVersion="3.0.0"?>
47- <?define SourceFolder="..\..\build\"?>
48-</Include>
49
50=== modified file 'install/NUnit.Framework.Installer/Framework-NET1.1.wxs'
51--- install/NUnit.Framework.Installer/Framework-NET1.1.wxs 2009-08-18 00:12:11 +0000
52+++ install/NUnit.Framework.Installer/Framework-NET1.1.wxs 2009-08-22 19:30:31 +0000
53@@ -1,61 +1,59 @@
54 <?xml version="1.0" encoding="UTF-8"?>
55
56-<?include Definitions.wxi ?>
57-
58 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
59
60 <Fragment>
61
62- <DirectoryRef Id="FrameworkFolder">
63+ <DirectoryRef Id="FrameworkBinFolder" FileSource="$(var.InstallImage)/bin">
64 <Directory Id="FrameworkNet11Folder" Name="net-1.1">
65- <Component Id="nunit.framework.dll_net1.1_dir" Guid="9b19e04a-32f7-42de-812a-93988c581e5b">
66- <Condition>NOT INSTALLINGAC</Condition>
67-
68- <File Id="nunit.framework.dll_net1.1_dir"
69- DiskId="1"
70- KeyPath="yes"
71- Assembly="no"
72- Source="$(var.SourceFolder)net\1.1\release\nunit.framework.dll"/>
73-
74- </Component>
75-
76- <Component Id="nunit.framework.dll_net1.1_gac" Guid="4fac4e20-d135-4ff2-b595-4116f7be192c">
77- <Condition>INSTALLINGAC</Condition>
78-
79- <File Id="nunit.framework.dll_net1.1_gac"
80- DiskId="1"
81- KeyPath="yes"
82- Assembly=".net"
83- Source="$(var.SourceFolder)net\1.1\release\nunit.framework.dll"/>
84-
85- </Component>
86-
87- <Component Id="nunit.framework.tests.dll_net1.1" Guid="4c3d2d31-f468-4bd2-832f-19f3e500f24a">
88- <File Id="nunit.framework.tests.dll_net1.1"
89- DiskId="1"
90- KeyPath="yes"
91- Assembly="no"
92- Source="$(var.SourceFolder)net\1.1\release\nunit.framework.tests.dll"/>
93-
94- </Component>
95-
96- <Component Id="nunit.framework.xml_net1.1" Guid="a657bbb7-48fd-49de-b0c9-79d143645d16">
97-
98- <File Id="nunit.framework.xml_net1.1"
99- DiskId="1"
100- KeyPath="yes"
101- Source="$(var.SourceFolder)net\1.1\release\nunit.framework.xml"/>
102-
103- </Component>
104-
105- <Component Id="AssemblyReferenceFolder_1.1" Guid="8fa8f040-2de4-4192-82e2-a5c6f3f0f082">
106- <RegistryKey Id="R__Assemblies_1.1" Root="HKLM"
107- Key="Software\Microsoft\.NETFramework\AssemblyFolders\NUnit [ProductVersion]"
108- Action="createAndRemoveOnUninstall">
109-
110- <RegistryValue Id="R__Assemblies_1.1_Default" Action="write" Type="string" Value="[FrameworkNet11Folder]"/>
111- </RegistryKey>
112- </Component>
113+ <Component Id="nunit.framework.dll_net1.1_dir" Guid="9b19e04a-32f7-42de-812a-93988c581e5b">
114+ <Condition>NOT INSTALLINGAC</Condition>
115+
116+ <File Id="nunit.framework.dll_net1.1_dir"
117+ DiskId="1"
118+ KeyPath="yes"
119+ Assembly="no"
120+ Name="nunit.framework.dll"/>
121+
122+ </Component>
123+
124+ <Component Id="nunit.framework.dll_net1.1_gac" Guid="4fac4e20-d135-4ff2-b595-4116f7be192c">
125+ <Condition>INSTALLINGAC</Condition>
126+
127+ <File Id="nunit.framework.dll_net1.1_gac"
128+ DiskId="1"
129+ KeyPath="yes"
130+ Assembly=".net"
131+ Name="nunit.framework.dll"/>
132+
133+ </Component>
134+
135+ <Component Id="nunit.framework.tests.dll_net1.1" Guid="4c3d2d31-f468-4bd2-832f-19f3e500f24a">
136+ <File Id="nunit.framework.tests.dll_net1.1"
137+ DiskId="1"
138+ KeyPath="yes"
139+ Assembly="no"
140+ Name="nunit.framework.tests.dll"/>
141+
142+ </Component>
143+
144+ <Component Id="nunit.framework.xml_net1.1" Guid="a657bbb7-48fd-49de-b0c9-79d143645d16">
145+
146+ <File Id="nunit.framework.xml_net1.1"
147+ DiskId="1"
148+ KeyPath="yes"
149+ Name="nunit.framework.xml"/>
150+
151+ </Component>
152+
153+ <Component Id="AssemblyReferenceFolder_1.1" Guid="8fa8f040-2de4-4192-82e2-a5c6f3f0f082">
154+ <RegistryKey Id="R__Assemblies_1.1" Root="HKLM"
155+ Key="Software\Microsoft\.NETFramework\AssemblyFolders\NUnit [ProductVersion]"
156+ Action="createAndRemoveOnUninstall">
157+
158+ <RegistryValue Id="R__Assemblies_1.1_Default" Action="write" Type="string" Value="[FrameworkNet11Folder]"/>
159+ </RegistryKey>
160+ </Component>
161 </Directory>
162 </DirectoryRef>
163
164
165=== modified file 'install/NUnit.Framework.Installer/Framework-NET2.0.wxs'
166--- install/NUnit.Framework.Installer/Framework-NET2.0.wxs 2009-08-18 00:12:11 +0000
167+++ install/NUnit.Framework.Installer/Framework-NET2.0.wxs 2009-08-22 19:30:31 +0000
168@@ -1,62 +1,60 @@
169 <?xml version="1.0" encoding="UTF-8"?>
170
171-<?include Definitions.wxi ?>
172-
173 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
174
175 <Fragment>
176
177- <DirectoryRef Id="FrameworkFolder">
178+ <DirectoryRef Id="FrameworkBinFolder" FileSource="$(var.InstallImage)\bin">
179 <Directory Id="FrameworkNet20Folder" Name="net-2.0">
180- <Component Id="nunit.framework.dll_net2.0_dir" Guid="eee247ab-5d00-45c5-bfa5-23e0aec1cf7d">
181- <Condition>NOT INSTALLINGAC</Condition>
182-
183- <File Id="nunit.framework.dll_net2.0_dir"
184- DiskId="1"
185- KeyPath="yes"
186- Assembly="no"
187- Source="$(var.SourceFolder)net\2.0\release\nunit.framework.dll"/>
188-
189- </Component>
190-
191- <Component Id="nunit.framework.dll_net2.0_gac" Guid="725537ca-3e8f-4bab-9166-da4d5e91fa5f">
192- <Condition>INSTALLINGAC</Condition>
193-
194- <File Id="nunit.framework.dll_net2.0_gac"
195- DiskId="1"
196- KeyPath="yes"
197- Assembly=".net"
198- Source="$(var.SourceFolder)net\2.0\release\nunit.framework.dll"/>
199-
200- </Component>
201-
202- <Component Id="nunit.framework.tests.dll_net2.0" Guid="4f40f59f-07de-47e6-a3ed-b4a1b71ef93a">
203- <File Id="nunit.framework.tests.dll_net2.0"
204- DiskId="1"
205- KeyPath="yes"
206- Assembly="no"
207- Source="$(var.SourceFolder)net\2.0\release\nunit.framework.tests.dll"/>
208-
209- </Component>
210-
211- <Component Id="nunit.framework.xml_net2.0" Guid="79cb5e96-68f4-4002-aa04-eebc494bba89">
212-
213- <File Id="nunit.framework.xml_net2.0"
214- DiskId="1"
215- KeyPath="yes"
216- Source="$(var.SourceFolder)net\2.0\release\nunit.framework.xml"/>
217-
218- </Component>
219-
220- <Component Id="AssemblyReferenceFolder_2.0" Guid="87667d1d-8542-41f7-99f2-b3900324d05a">
221- <RegistryKey Id="R__Assemblies_2.0"
222- Action="createAndRemoveOnUninstall"
223- Root="HKLM"
224- Key="Software\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\NUnit [ProductVersion]">
225-
226- <RegistryValue Id="R__Assemblies_2.0_Default" Action="write" Type="string" Value="[FrameworkNet20Folder]"/>
227- </RegistryKey>
228- </Component>
229+ <Component Id="nunit.framework.dll_net2.0_dir" Guid="eee247ab-5d00-45c5-bfa5-23e0aec1cf7d">
230+ <Condition>NOT INSTALLINGAC</Condition>
231+
232+ <File Id="nunit.framework.dll_net2.0_dir"
233+ DiskId="1"
234+ KeyPath="yes"
235+ Assembly="no"
236+ Name="nunit.framework.dll"/>
237+
238+ </Component>
239+
240+ <Component Id="nunit.framework.dll_net2.0_gac" Guid="725537ca-3e8f-4bab-9166-da4d5e91fa5f">
241+ <Condition>INSTALLINGAC</Condition>
242+
243+ <File Id="nunit.framework.dll_net2.0_gac"
244+ DiskId="1"
245+ KeyPath="yes"
246+ Assembly=".net"
247+ Name="nunit.framework.dll"/>
248+
249+ </Component>
250+
251+ <Component Id="nunit.framework.tests.dll_net2.0" Guid="4f40f59f-07de-47e6-a3ed-b4a1b71ef93a">
252+ <File Id="nunit.framework.tests.dll_net2.0"
253+ DiskId="1"
254+ KeyPath="yes"
255+ Assembly="no"
256+ Name="nunit.framework.tests.dll"/>
257+
258+ </Component>
259+
260+ <Component Id="nunit.framework.xml_net2.0" Guid="79cb5e96-68f4-4002-aa04-eebc494bba89">
261+
262+ <File Id="nunit.framework.xml_net2.0"
263+ DiskId="1"
264+ KeyPath="yes"
265+ Name="nunit.framework.xml"/>
266+
267+ </Component>
268+
269+ <Component Id="AssemblyReferenceFolder_2.0" Guid="87667d1d-8542-41f7-99f2-b3900324d05a">
270+ <RegistryKey Id="R__Assemblies_2.0"
271+ Action="createAndRemoveOnUninstall"
272+ Root="HKLM"
273+ Key="Software\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\NUnit [ProductVersion]">
274+
275+ <RegistryValue Id="R__Assemblies_2.0_Default" Action="write" Type="string" Value="[FrameworkNet20Folder]"/>
276+ </RegistryKey>
277+ </Component>
278 </Directory>
279 </DirectoryRef>
280
281
282=== modified file 'install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj'
283--- install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj 2009-08-18 00:12:11 +0000
284+++ install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj 2009-08-22 19:30:31 +0000
285@@ -13,7 +13,9 @@
286 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
287 <OutputPath>bin\$(Configuration)\</OutputPath>
288 <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
289- <DefineConstants>Debug</DefineConstants>
290+ <DefineConstants>ProductVersion=2.9.1;NominalVersion=2.9.1;InstallImage=..\..\package\NUnit-2.9.1</DefineConstants>
291+ <WixVariables>
292+ </WixVariables>
293 </PropertyGroup>
294 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
295 <OutputPath>bin\$(Configuration)\</OutputPath>
296@@ -34,9 +36,6 @@
297 <HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
298 </WixExtension>
299 </ItemGroup>
300- <ItemGroup>
301- <Content Include="Definitions.wxi" />
302- </ItemGroup>
303 <Import Project="$(WixTargetsPath)" />
304 <!--
305 To modify your build process, add your task inside one of the targets below and uncomment it.
306
307=== modified file 'install/NUnit.Framework.Installer/Product.wxs'
308--- install/NUnit.Framework.Installer/Product.wxs 2009-08-21 19:49:56 +0000
309+++ install/NUnit.Framework.Installer/Product.wxs 2009-08-22 19:30:31 +0000
310@@ -1,7 +1,5 @@
311 <?xml version="1.0" encoding="UTF-8"?>
312
313-<?include Definitions.wxi ?>
314-
315 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
316
317 <Product Id="80da6878-5da5-4862-a29f-ff4a96714e59"
318@@ -24,7 +22,10 @@
319 <Directory Id="ProgramFilesFolder">
320 <Directory Id="INSTALLDIR" Name="NUnit">
321 <Directory Id="FrameworkRootFolder" Name="Framework">
322- <Directory Id="FrameworkFolder" Name="$(var.NominalVersion)"/>
323+ <Directory Id="FrameworkFolder" Name="$(var.NominalVersion)">
324+ <Directory Id="FrameworkBinFolder" Name="bin"/>
325+ <Directory Id="FrameworkDocFolder" Name="doc"/>
326+ </Directory>
327 </Directory>
328 </Directory>
329 </Directory>
330@@ -40,8 +41,7 @@
331 <FeatureRef Id="FrameworkNet20"/>
332 </Feature>
333
334- <!-- The following line causes an error in the NAnt build -->
335- <!--<WixVariable Id="WixUILicenseRtf" Value="..\License.rtf"/>-->
336+ <WixVariable Id="WixUILicenseRtf" Value="..\License.rtf"/>
337 <UIRef Id="NUnitUI_Framework"/>
338
339 <Media Id="1" Cabinet="nunit.cab" EmbedCab="yes" />
340
341=== modified file 'nunit.build'
342--- nunit.build 2009-08-21 19:49:56 +0000
343+++ nunit.build 2009-08-22 19:30:31 +0000
344@@ -23,23 +23,14 @@
345 <!-- Project name - used as a prefix for packages -->
346 <property name="project.name" value="NUnit"/>
347
348- <!-- NUnit Base Package Version - First three digits -->
349- <property name="base.package.version" value="2.9.1"/>
350+ <!-- NUnit Package Version - Three digits -->
351+ <property name="package.version" value="2.9.1"/>
352
353 <!-- Nominal version used for install directory and program
354 files menu. Normally the same as the package version,
355 but may differ when we are in alpha or beta. -->
356 <property name="nominal.version" value="2.9.1" />
357
358- <!-- Determine todays build number -->
359- <property name="temp.now" value="${datetime::now()}"/>
360- <property name="temp.yr" value="${datetime::get-year(temp.now)-2000}"/>
361- <property name="temp.day" value="${string::pad-left(datetime::get-day-of-year(temp.now),3,'0')}"/>
362- <property name="package.build.number" value="${temp.yr}${temp.day}"/>
363-
364- <!-- NUnit full package version -->
365- <property name="package.version" value="${base.package.version}.${package.build.number}"/>
366-
367 <!-- Package Configuration (Release, Alpha, Beta, etc.) -->
368 <property name="package.configuration" value=""/>
369
370@@ -256,8 +247,6 @@
371 <property name="partcover.commandline"
372 value='--target="${nunit.console.dir}/nunit-console.exe" --target-args="${nunit.commandline}" --include=[nunit.framework]* --output=TestCoverage-${nant.settings.currentframework}.xml'/>
373
374- <echo message="PartCover ${partcover.commandline}"/>
375-
376 <exec basedir="${partcover.dir}"
377 workingdir="${current.build.dir}"
378 program="PartCover.exe"
379@@ -486,11 +475,11 @@
380 if="${package.config==default.package.config}"/>
381
382 <candle out="${work.dir}/" exedir="${wix.dir}">
383- <!--<defines>
384+ <defines>
385 <define name="ProductVersion" value="${package.version}" />
386 <define name="NominalVersion" value="${nominal.version}" />
387 <define name="InstallImage" value="package\NUnit-${package.version}" />
388- </defines>-->
389+ </defines>
390 <sources basedir="${project.install.dir}">
391 <include name="**/*.wxs" />
392 </sources>
393@@ -498,7 +487,8 @@
394
395 <light exedir="${wix.dir}"
396 out="${project.package.dir}/${msi.file.name}"
397- extensions="WixUIExtension;WixNetFxExtension" >
398+ extensions="WixUIExtension;WixNetFxExtension">
399+ <arg line="-b ${project.install.dir}\NUnit.Framework.Installer"/>
400 <sources>
401 <include name="${work.dir}/*.wixobj" />
402 <include name="${wix.dir}/wixui.wixlib" />

Subscribers

People subscribed via source and target branches