Skip to content

Commit 8572315

Browse files
committed
Rename bld.msi and bld.cab to bld.asserts.msi and bld.asserts.cab
1 parent d12f988 commit 8572315

File tree

8 files changed

+18
-12
lines changed

8 files changed

+18
-12
lines changed

platforms/Windows/SideBySideUpgradeStrategy.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
-->
1818

1919
<PropertyGroup>
20-
<BldUpgradeCode>{7E95DC06-7F84-4E8E-A038-8304AF0468FB}</BldUpgradeCode>
20+
<BldAssertsUpgradeCode>{7E95DC06-7F84-4E8E-A038-8304AF0468FB}</BldAssertsUpgradeCode>
2121
<CliUpgradeCode>{87019842-3F3E-4227-B5C5-23A8EF72AD89}</CliUpgradeCode>
2222
<DbgUpgradeCode>{91D382AF-1E92-44DC-A4AD-AEE91C1B5160}</DbgUpgradeCode>
2323
<IdeUpgradeCode>{8DD91C86-D13D-490B-B06B-9522A9CF504C}</IdeUpgradeCode>
@@ -54,7 +54,7 @@
5454
<DefineConstants>
5555
$(DefineConstants);
5656
BundleUpgradeCode=$(BundleUpgradeCode);
57-
BldUpgradeCode=$(BldUpgradeCode);
57+
BldAssertsUpgradeCode=$(BldAssertsUpgradeCode);
5858
CliUpgradeCode=$(CliUpgradeCode);
5959
DbgUpgradeCode=$(DbgUpgradeCode);
6060
IdeUpgradeCode=$(IdeUpgradeCode);

platforms/Windows/bld/bld.wixproj renamed to platforms/Windows/bld/asserts/bld.asserts.wixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
_USR_LIB_CLANG=$(ImageRoot)\Toolchains\$(ProductVersion)+Asserts\usr\lib\clang;
66
_USR_LIB_SWIFT_CLANG=$(ImageRoot)\Toolchains\$(ProductVersion)+Asserts\usr\lib\swift\clang;
77
</DefineConstants>
8+
<OutputName>bld.asserts</OutputName>
89
</PropertyGroup>
910

1011
<ItemGroup>

platforms/Windows/bld/asserts/bld.wxs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2+
<?include ../bld.wxi ?>
3+
</Wix>

platforms/Windows/bld/bld.wxs renamed to platforms/Windows/bld/bld.wxi

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
23

34
<?define ToolchainRoot = $(ImageRoot)\Toolchains\$(ProductVersion)+Asserts?>
45

56
<Package
67
Language="1033"
78
Manufacturer="!(loc.ManufacturerName)"
8-
Name="!(loc.Bld_ProductName)"
9-
UpgradeCode="$(BldUpgradeCode)"
9+
Name="!(loc.BldAsserts_ProductName)"
10+
UpgradeCode="$(BldAssertsUpgradeCode)"
1011
Version="$(NonSemVerProductVersion)"
1112
Scope="$(PackageScope)">
1213

13-
<Media Id="1" Cabinet="bld.cab" EmbedCab="$(ArePackageCabsEmbedded)" />
14+
<Media Id="1" Cabinet="bld.asserts.cab" EmbedCab="$(ArePackageCabsEmbedded)" />
1415

15-
<WixVariable Id="SideBySidePackageUpgradeCode" Value="$(BldUpgradeCode)" />
16+
<WixVariable Id="SideBySidePackageUpgradeCode" Value="$(BldAssertsUpgradeCode)" />
1617
<FeatureGroupRef Id="SideBySideUpgradeStrategy" />
1718

1819
<DirectoryRef Id="_usr_include">
@@ -549,7 +550,7 @@
549550
</Component>
550551
</ComponentGroup>
551552

552-
<Feature Id="BuildTools" AllowAbsent="no" Title="!(loc.Bld_ProductName)">
553+
<Feature Id="BuildTools" AllowAbsent="no" Title="!(loc.BldAsserts_ProductName)">
553554
<ComponentGroupRef Id="cmark_gfm" />
554555

555556
<ComponentGroupRef Id="binutils" />
@@ -578,4 +579,4 @@
578579
<ComponentGroupRef Id="VersionedDirectoryCleanup" />
579580
</Feature>
580581
</Package>
581-
</Wix>
582+
</Include>

platforms/Windows/bundle/installer.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<ProjectReference Include="..\bld\bld.wixproj" BindName="bld" />
19+
<ProjectReference Include="..\bld\asserts\bld.asserts.wixproj" BindName="bld.asserts" />
2020
<ProjectReference Include="..\cli\cli.wixproj" BindName="cli" />
2121
<ProjectReference Include="..\dbg\dbg.wixproj" BindName="dbg" />
2222
<ProjectReference Include="..\ide\ide.wixproj" BindName="ide" />

platforms/Windows/bundle/installer.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</MsiPackage>
8383

8484
<MsiPackage
85-
SourceFile="!(bindpath.bld)\bld.msi"
85+
SourceFile="!(bindpath.bld.asserts)\bld.asserts.msi"
8686
DownloadUrl="$(BaseReleaseDownloadUrl)/{2}">
8787
<MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" />
8888
</MsiPackage>

platforms/Windows/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Note that these GUIDs are substituted at bind time so they skip the normal valid
216216

217217
| Property | Description |
218218
| -------- | ----------- |
219-
| BldUpgradeCode, CliUpgradeCode, DbgUpgradeCode, IdeUpgradeCode, RtlUpgradeCode, WindowsSDKUpgradeCode, AndroidSDKUpgradeCode | Upgrade codes for individual packages. Packages keep the same upgrade codes "forever" because MSI lets you specify version ranges for upgrades, which you can find in `shared/shared.wxs`. |
219+
| BldAssertsUpgradeCode, CliUpgradeCode, DbgUpgradeCode, IdeUpgradeCode, RtlUpgradeCode, WindowsSDKUpgradeCode, AndroidSDKUpgradeCode | Upgrade codes for individual packages. Packages keep the same upgrade codes "forever" because MSI lets you specify version ranges for upgrades, which you can find in `shared/shared.wxs`. |
220220
| BundleUpgradeCode | Upgrade codes for the bundle. Bundles don't support upgrade version ranges, so the bundle upgrade code must change for every minor version _and_ stay the same for the entire lifetime of that minor version (e.g., v5.10.0 through v5.10.9999). You can keep the history of upgrade codes using a condition like `Condition="'$(MajorMinorProductVersion)' == '5.10'` or just replace BundleUpgradeCode when forking to a new minor version. |
221221

222222

platforms/Windows/shared/swift.en-us.wxl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US">
44
<String Id="DowngradeError" Value="A newer version of [ProductName] is already installed." />
55
<String Id="Bld_ProductName" Value="Swift Build Tools" />
6+
<String Id="BldAsserts_ProductName" Value="Swift Build Tools (Asserts)" />
67
<String Id="Cli_ProductName" Value="Swift Command Line Tools" />
78
<String Id="Dbg_ProductName" Value="Swift Debugging Tools" />
89
<String Id="Ide_ProductName" Value="Swift IDE Integration Tools" />

0 commit comments

Comments
 (0)