|
2 | 2 | <Package
|
3 | 3 | Language="1033"
|
4 | 4 | Manufacturer="nicklockwood"
|
5 |
| - Name="SwiftFormat for Windows x86_64" |
| 5 | + Name="SwiftFormat for Windows $(var.ProductArchitecture)" |
6 | 6 | UpgradeCode="98e01ac8-a17d-43fd-99ed-1cd8b58715bf"
|
7 | 7 | Version="$(var.ProductVersion)"
|
8 | 8 | Scope="perMachine">
|
9 |
| - <SummaryInformation Description="SwiftFormat for Windows x86_64" /> |
| 9 | + <SummaryInformation Description="SwiftFormat for Windows $(var.ProductArchitecture)" /> |
10 | 10 |
|
11 | 11 | <!-- NOTE(compnerd) use pre-3.0 schema for better compatibility. -->
|
12 | 12 | <Media Id="1" Cabinet="SwiftFormat.cab" EmbedCab="yes" />
|
13 | 13 |
|
14 | 14 | <!-- Directory Structure -->
|
| 15 | + <!-- Components --> |
| 16 | + |
15 | 17 | <!-- WindowsVolume is not a StandardDirectory value, but rather a standard property. See https://github.com/wixtoolset/issues/issues/7314 -->
|
16 | 18 | <SetDirectory Id="WINDOWSVOLUME" Value="[WindowsVolume]" />
|
| 19 | + |
17 | 20 | <Directory ComponentGuidGenerationSeed="7818d7fe-5173-4a41-9809-e72263ea9738" Id="WINDOWSVOLUME">
|
18 | 21 | <Directory Id="INSTALLDIR">
|
19 | 22 | <Directory Id="Library" Name="Library">
|
20 | 23 | <Directory Id="Developer" Name="Developer">
|
21 | 24 | <Directory Id="Tools" Name="Tools">
|
| 25 | + <Component Id="swiftformat.exe"> |
| 26 | + <File Id="swiftformat.exe" Source="$(var.SWIFTFORMAT_BUILD)\swiftformat.exe" Checksum="yes" /> |
| 27 | + </Component> |
22 | 28 | </Directory>
|
23 | 29 | </Directory>
|
24 | 30 | </Directory>
|
| 31 | + <Component Id="EnvironmentVariables" Guid="b46687c3-f836-47e5-9b43-d9fd2552a731"> |
| 32 | + <!-- <Component Id="EnvironmentVariables"> --> |
| 33 | + <Environment Id="Path" Action="set" Name="Path" Part="last" Permanent="no" System="yes" Value="[INSTALLDIR]Library\Developer\Tools" /> |
| 34 | + </Component> |
25 | 35 | </Directory>
|
26 | 36 | </Directory>
|
27 | 37 |
|
28 |
| - <!-- Components --> |
29 |
| - <ComponentGroup Id="SwiftFormat"> |
30 |
| - <Component Id="swiftformat.exe" Directory="Tools" Guid="77126634-5f91-40a7-b344-035ce99ef46f"> |
31 |
| - <File Id="swiftformat.exe" Source="$(var.SWIFTFORMAT_BUILD)\swiftformat.exe" Checksum="yes" /> |
32 |
| - </Component> |
33 |
| - </ComponentGroup> |
34 |
| - |
35 |
| - <Component Id="EnvironmentVariables" Directory="INSTALLDIR" Guid="b46687c3-f836-47e5-9b43-d9fd2552a731"> |
36 |
| - <Environment Id="Path" Action="set" Name="Path" Part="last" Permanent="no" System="yes" Value="[INSTALLDIR]Library\Developer\Tools" /> |
37 |
| - </Component> |
38 |
| - |
39 |
| - <Feature Id="SwiftFormat" AllowAbsent="no" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="SwiftFormat for Windows x86_64" Level="1" Title="SwiftFormat (Windows x86_64)"> |
40 |
| - <ComponentGroupRef Id="SwiftFormat" /> |
| 38 | + <Feature Id="SwiftFormat" AllowAbsent="no" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="SwiftFormat for Windows $(var.ProductArchitecture)" Level="1" Title="SwiftFormat (Windows $(var.ProductArchitecture))"> |
| 39 | + <ComponentRef Id="swiftformat.exe" /> |
41 | 40 | <ComponentRef Id="EnvironmentVariables" />
|
42 | 41 | </Feature>
|
43 | 42 |
|
|
0 commit comments