|
1 | 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
2 |
| - <Package |
3 |
| - Language="1033" |
4 |
| - Manufacturer="swift.org" |
5 |
| - Name="Swift Code Formatter for Windows aarch64" |
6 |
| - UpgradeCode="45f1ae7a-4d90-414d-80b3-a5a45898b212" |
7 |
| - Version="$(var.ProductVersion)" |
8 |
| - Scope="perMachine"> |
9 |
| - <SummaryInformation Description="Swift Code Formatter for Windows aarch64" /> |
| 2 | + <Package Language="1033" Manufacturer="swift.org" Name="Swift Code Formatter" UpgradeCode="45f1ae7a-4d90-414d-80b3-a5a45898b212" Version="$(var.ProductVersion)" Scope="perMachine"> |
| 3 | + <SummaryInformation Description="Swift Code Formatter" /> |
10 | 4 |
|
11 | 5 | <!-- NOTE(compnerd) use pre-3.0 schema for better compatibility. -->
|
12 | 6 | <Media Id="1" Cabinet="SwiftFormat.cab" EmbedCab="yes" />
|
13 | 7 |
|
14 |
| - <!-- Directory Structure --> |
15 | 8 | <!-- WindowsVolume is not a StandardDirectory value, but rather a standard property. See https://github.com/wixtoolset/issues/issues/7314 -->
|
16 | 9 | <SetDirectory Id="WINDOWSVOLUME" Value="[WindowsVolume]" />
|
| 10 | + |
17 | 11 | <Directory ComponentGuidGenerationSeed="ab1b7ca9-b240-44c7-be8b-3cf1e34ad747" Id="WINDOWSVOLUME">
|
18 | 12 | <Directory Id="INSTALLDIR">
|
19 | 13 | <Directory Id="Library" Name="Library">
|
20 | 14 | <Directory Id="Developer" Name="Developer">
|
21 | 15 | <Directory Id="Tools" Name="Tools">
|
| 16 | + <Component Id="swift_format.exe"> |
| 17 | + <File Id="swift_format.exe" Source="$(var.SWIFT_FORMAT_BUILD)\swift-format.exe" Checksum="yes" /> |
| 18 | + </Component> |
22 | 19 | </Directory>
|
23 | 20 | </Directory>
|
24 | 21 | </Directory>
|
| 22 | + |
| 23 | + <Component Id="EnvironmentVariables" Guid="c1a01e55-3353-4eca-8b58-9960e57a3758"> |
| 24 | + <Environment Id="Path" Action="set" Name="Path" Part="last" Permanent="no" System="yes" Value="[INSTALLDIR]Library\Developer\Tools" /> |
| 25 | + </Component> |
25 | 26 | </Directory>
|
26 | 27 | </Directory>
|
27 | 28 |
|
28 |
| - <!-- Components --> |
29 |
| - <ComponentGroup Id="SwiftFormat"> |
30 |
| - <Component Id="swift_format.exe" Directory="Tools" Guid="1e6c84e1-6cf4-4e34-90f6-eb76c278f7e2"> |
31 |
| - <File Id="swift_format.exe" Source="$(var.SWIFT_FORMAT_BUILD)\swift-format.exe" Checksum="yes" /> |
32 |
| - </Component> |
33 |
| - </ComponentGroup> |
34 |
| - |
35 |
| - <Component Id="EnvironmentVariables" Directory="INSTALLDIR" Guid="c1a01e55-3353-4eca-8b58-9960e57a3758"> |
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="Swift Code Formatter for Windows aarch64" Level="1" Title="Swift Code Formatter (Windows aarch64)"> |
40 |
| - <ComponentGroupRef Id="SwiftFormat" /> |
| 29 | + <Feature Id="SwiftFormat" AllowAbsent="no" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="Swift Code Formatter" Level="1" Title="Swift Code Formatter"> |
| 30 | + <ComponentRef Id="swift_format.exe" /> |
41 | 31 | <ComponentRef Id="EnvironmentVariables" />
|
42 | 32 | </Feature>
|
43 | 33 |
|
|
46 | 36 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2" />
|
47 | 37 | <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" />
|
48 | 38 | </UI>
|
| 39 | + |
49 | 40 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property>
|
| 41 | + |
50 | 42 | <WixVariable Id="WixUIDialogBmp" Value="Resources\swift_dialog.png" />
|
51 | 43 | <WixVariable Id="WixUIBannerBmp" Value="Resources\swift_banner.png" />
|
52 |
| - |
53 | 44 | </Package>
|
54 | 45 | </Wix>
|
0 commit comments