Skip to content

Commit 5a694e0

Browse files
committed
Bundle x64/arm64 MSI package
1 parent 139b760 commit 5a694e0

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

cli/src/main/wix/Bootstrapper/Cyberduck CLI Bundle.wxs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
2-
<Bundle Name="Cyberduck CLI" Version="!(bind.packageVersion.Setup)" Manufacturer="iterate GmbH" UpgradeCode="46C3FB4E-2B23-4728-8196-BEA25ADE868A" IconSourceFile="$(CyberduckDir)cyberduck-application.ico">
2+
<Bundle Name="Cyberduck CLI" Version="$(ProductVersion)" Manufacturer="iterate GmbH" UpgradeCode="46C3FB4E-2B23-4728-8196-BEA25ADE868A" IconSourceFile="$(CyberduckDir)cyberduck-application.ico">
33
<BootstrapperApplication>
44
<bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="$(SetupDir)banner.png" LogoSideFile="$(SetupDir)welcome.bmp" Theme="hyperlinkSidebarLicense" />
55
</BootstrapperApplication>
@@ -9,7 +9,12 @@
99
<bal:Condition Message="Windows 10 Anniversary Update (14393) or later is required to run this application." Condition="WindowsBuildNumber &gt;= 14393" />
1010

1111
<Chain>
12-
<MsiPackage Id="Setup" Compressed="yes" SourceFile="$(duck.bundle.TargetPath)" Vital="yes">
12+
<MsiPackage Id="Setup.arm64" Compressed="yes" SourceFile="!(bindpath.duck.bundle.arm64)\$(TargetName)-arm64.msi" Vital="yes" bal:PrimaryPackageType="arm64" InstallCondition="NativeMachine = 43620">
13+
<!-- NativeMachine=0xAA64 (43620) -->
14+
<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
15+
</MsiPackage>
16+
<MsiPackage Id="Setup.x64" Compressed="yes" SourceFile="!(bindpath.duck.bundle.x64)\$(TargetName)-x64.msi" Vital="yes" bal:PrimaryPackageType="x64" InstallCondition="NativeMachine = 34404">
17+
<!-- NativeMachine=0x8664 (34404) -->
1318
<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
1419
</MsiPackage>
1520
</Chain>
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
<Project Sdk="WixToolset.Sdk">
1+
<Project Sdk="WixToolset.Sdk">
22
<PropertyGroup>
3-
<OutputName>duck-$(FileVersion)-$(Platform)</OutputName>
4-
<Platforms>x64;arm64</Platforms>
3+
<OutputName>duck-$(FileVersion)</OutputName>
54
<OutputType>Bundle</OutputType>
6-
<DefineConstants>CyberduckDir=$(CyberduckDir);SetupDir=$(SetupDir)</DefineConstants>
5+
<DefineConstants>CyberduckDir=$(CyberduckDir);SetupDir=$(SetupDir);ProductVersion=$(FileVersion)</DefineConstants>
76
</PropertyGroup>
87
<ItemGroup>
98
<PackageReference Include="WixToolset.Bal.wixext" />
109
<PackageReference Include="WixToolset.Util.wixext" />
1110
</ItemGroup>
1211
<ItemGroup>
13-
<ProjectReference Include="../Bundle/duck.bundle.wixproj" />
12+
<ProjectReference Include="../Bundle/duck.bundle.wixproj" Platforms="arm64;x64" />
1413
</ItemGroup>
1514
</Project>

cli/src/main/wix/Bundle/duck.bundle.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</DefineConstants>
88
</PropertyGroup>
99
<ItemGroup>
10-
<ProjectReference Include="..\..\csharp\duck.csproj" Publish="true" />
10+
<ProjectReference Include="..\..\csharp\duck.csproj" SetPlatform="$(Platform)" Publish="true" />
1111
</ItemGroup>
1212
</Project>

0 commit comments

Comments
 (0)