|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 3 | + <Product Id="*" Language="1033" Manufacturer="swift.org" Name="Swift Code Formatter for Windows aarch64" UpgradeCode="45f1ae7a-4d90-414d-80b3-a5a45898b212" Version="$(var.ProductVersion)"> |
| 4 | + <Package Comments="Copyright (c) 2021-2022 Swift Open Source Project" Compressed="yes" Description="Swift Code Formatter for Windows aarch64" InstallScope="perMachine" Manufacturer="swift.org" /> |
| 5 | + |
| 6 | + <!-- NOTE(compnerd) use pre-3.0 schema for better compatibility. --> |
| 7 | + <Media Id="1" Cabinet="SwiftFormat.cab" EmbedCab="yes" /> |
| 8 | + <?ifdef INCLUDE_DEBUG_INFO?> |
| 9 | + <Media Id="2" Cabinet="PDBs.cab" EmbedCab="yes" /> |
| 10 | + <?endif?> |
| 11 | + |
| 12 | + <!-- Directory Structure --> |
| 13 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 14 | + <Directory Id="INSTALLDIR"> |
| 15 | + <Directory Id="Developer" Name="Developer"> |
| 16 | + <Directory Id="Tools" Name="Tools"> |
| 17 | + </Directory> |
| 18 | + </Directory> |
| 19 | + </Directory> |
| 20 | + </Directory> |
| 21 | + |
| 22 | + <SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]Library"> |
| 23 | + NOT INSTALLDIR |
| 24 | + </SetDirectory> |
| 25 | + |
| 26 | + <!-- Components --> |
| 27 | + <ComponentGroup Id="SwiftFormat"> |
| 28 | + <Component Id="swift_format.exe" Directory="Tools" Guid="1e6c84e1-6cf4-4e34-90f6-eb76c278f7e2"> |
| 29 | + <File Id="swift_format.exe" Source="$(var.SWIFT_FORMAT_BUILD)\swift-format.exe" Checksum="yes" /> |
| 30 | + </Component> |
| 31 | + </ComponentGroup> |
| 32 | + |
| 33 | + <?ifdef INCLUDE_DEBUG_INFO ?> |
| 34 | + <ComponentGroup Id="SwiftFormatDebugInfo"> |
| 35 | + <Component Id="swift_format.pdb" Directory="Tools" Guid="24079895-af2f-4a67-95f3-a262d4e88390"> |
| 36 | + <File Id="swift_format.pdb" Source="$(var.SWIFT_FORMAT_BUILD)\swift-format.pdb" Checksum="yes" /> |
| 37 | + </Component> |
| 38 | + </ComponentGroup> |
| 39 | + <?endif?> |
| 40 | + |
| 41 | + <DirectoryRef Id="TARGETDIR"> |
| 42 | + <Component Id="EnvironmentVariables" Guid="c1a01e55-3353-4eca-8b58-9960e57a3758"> |
| 43 | + <Environment Id="Path" Action="set" Name="Path" Part="last" Permanent="no" System="yes" Value="[INSTALLDIR]Developer\Tools" /> |
| 44 | + </Component> |
| 45 | + </DirectoryRef> |
| 46 | + |
| 47 | + <Feature Id="SwiftFormat" Absent="disallow" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="Swift Code Formatter for Windows aarch64" Level="1" Title="Swift Code Formatter (Windows aarch64)"> |
| 48 | + <ComponentGroupRef Id="SwiftFormat" /> |
| 49 | + <ComponentRef Id="EnvironmentVariables" /> |
| 50 | + |
| 51 | + <?ifdef INCLUDE_DEBUG_INFO?> |
| 52 | + <Feature Id="DebugInfo" Absent="allow" Description="Debug Information for Swift Code Formatter for Windows aarch64" Level="0" Title="Debug Information"> |
| 53 | + <Condition Level="1">INSTALL_DEBUGINFO</Condition> |
| 54 | + <ComponentGroupRef Id="SwiftFormatDebugInfo" /> |
| 55 | + </Feature> |
| 56 | + <?endif?> |
| 57 | + </Feature> |
| 58 | + |
| 59 | + <UI> |
| 60 | + <UIRef Id="WixUI_InstallDir" /> |
| 61 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2">1</Publish> |
| 62 | + <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">1</Publish> |
| 63 | + </UI> |
| 64 | + <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" ></Property> |
| 65 | + <WixVariable Id="WixUIDialogBmp" Value="Resources\swift_dialog.png" /> |
| 66 | + <WixVariable Id="WixUIBannerBmp" Value="Resources\swift_banner.png" /> |
| 67 | + |
| 68 | + </Product> |
| 69 | +</Wix> |
0 commit comments