Skip to content

Commit 1944595

Browse files
authored
Merge pull request #18 from compnerd/installer
Windows: add build scripts for the installer
2 parents cfb6497 + b1e1a53 commit 1944595

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

platforms/Windows/Resources/swift.png

3.32 KB
Loading

platforms/Windows/installer.wixproj

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3+
<PropertyGroup>
4+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
5+
</PropertyGroup>
6+
7+
<PropertyGroup>
8+
<OutputName>installer</OutputName>
9+
<OutputType>Bundle</OutputType>
10+
<ProjectGuid>8ae3ad4d-2df4-42b7-890e-decdd5cead0b</ProjectGuid>
11+
<SchemaVersion>2.0</SchemaVersion>
12+
<ProductVersion Condition=" '$(ProductVersion)' == '' ">0.0.0</ProductVersion>
13+
<ProductVersion>$(ProductVersion)</ProductVersion>
14+
</PropertyGroup>
15+
16+
<PropertyGroup>
17+
<OutputPath>build\</OutputPath>
18+
<IntermediateOutputPath>build\obj\</IntermediateOutputPath>
19+
<DefineSolutionProperties>false</DefineSolutionProperties>
20+
</PropertyGroup>
21+
22+
<Import Project="$(WixTargetsPath)" />
23+
24+
<PropertyGroup>
25+
<DefineConstants>ProductVersion=$(ProductVersion);MSI_LOCATION=$(MSI_LOCATION);</DefineConstants>
26+
</PropertyGroup>
27+
28+
<ItemGroup>
29+
<WixExtension Include="WixBalExtension">
30+
<HintPath>$(WixExtDir)\WixBalExtension.dll</HintPath>
31+
<Name>WixBalExtension</Name>
32+
</WixExtension>
33+
</ItemGroup>
34+
35+
<ItemGroup>
36+
<Compile Include="installer.wxs" />
37+
</ItemGroup>
38+
</Project>

platforms/Windows/installer.wxs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
3+
<Bundle Name="Swift" Version="$(var.ProductVersion)" Manufacturer="swift.org" UpgradeCode="8c75f32a-7bdf-4c61-abf6-c7e1c4b8fbf6">
4+
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
5+
<bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="Resources/swift.png" SuppressOptionsUI="yes" SuppressRepair="no" />
6+
</BootstrapperApplicationRef>
7+
8+
<Chain>
9+
<MsiPackage SourceFile="$(var.MSI_LOCATION)\toolchain.msi" Compressed="yes">
10+
<MsiProperty Name="INSTALL_DEBUGINFO" Value="[INSTALL_DEBUGINFO]" />
11+
</MsiPackage>
12+
<MsiPackage SourceFile="$(var.MSI_LOCATION)\sdk.msi" Compressed="yes" />
13+
<MsiPackage SourceFile="$(var.MSI_LOCATION)\devtools.msi" Compressed="yes" />
14+
<MsiPackage SourceFile="$(var.MSI_LOCATION)\runtime.msi" Compressed="yes" />
15+
<MsiPackage SourceFile="$(var.MSI_LOCATION)\icu.msi" Compressed="yes" />
16+
</Chain>
17+
</Bundle>
18+
</Wix>

0 commit comments

Comments
 (0)