| 1 |
<?xml version='1.0' encoding='windows-1252'?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2017 Christopher R. Field. |
| 4 |
|
| 5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
you may not use this file except in compliance with the License. |
| 7 |
You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
--> |
| 17 |
|
| 18 |
<!-- |
| 19 |
The "cargo wix" subcommand provides a variety of predefined variables available |
| 20 |
for customization of this template. The values for each variable are set at |
| 21 |
installer creation time. The following variables are available: |
| 22 |
|
| 23 |
TargetTriple = The rustc target triple name. |
| 24 |
TargetEnv = The rustc target environment. This is typically either |
| 25 |
"msvc" or "gnu" depending on the toolchain downloaded and |
| 26 |
installed. |
| 27 |
TargetVendor = The rustc target vendor. This is typically "pc", but Rust |
| 28 |
does support other vendors, like "uwp". |
| 29 |
CargoTargetBinDir = The complete path to the directory containing the |
| 30 |
binaries (exes) to include. The default would be |
| 31 |
"target\release\". If an explicit rustc target triple is |
| 32 |
used, i.e. cross-compiling, then the default path would |
| 33 |
be "target\<CARGO_TARGET>\<CARGO_PROFILE>", |
| 34 |
where "<CARGO_TARGET>" is replaced with the "CargoTarget" |
| 35 |
variable value and "<CARGO_PROFILE>" is replaced with the |
| 36 |
value from the "CargoProfile" variable. This can also |
| 37 |
be overridden manually with the "target-bin-dir" flag. |
| 38 |
CargoTargetDir = The path to the directory for the build artifacts, i.e. |
| 39 |
"target". |
| 40 |
CargoProfile = The cargo profile used to build the binaries |
| 41 |
(usually "debug" or "release"). |
| 42 |
Version = The version for the installer. The default is the |
| 43 |
"Major.Minor.Fix" semantic versioning number of the Rust |
| 44 |
package. |
| 45 |
--> |
| 46 |
|
| 47 |
<!-- |
| 48 |
Please do not remove these pre-processor If-Else blocks. These are used with |
| 49 |
the `cargo wix` subcommand to automatically determine the installation |
| 50 |
destination for 32-bit versus 64-bit installers. Removal of these lines will |
| 51 |
cause installation errors. |
| 52 |
--> |
| 53 |
<?if $(sys.BUILDARCH) = x64 or $(sys.BUILDARCH) = arm64 ?> |
| 54 |
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> |
| 55 |
<?else ?> |
| 56 |
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?> |
| 57 |
<?endif ?> |
| 58 |
|
| 59 |
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> |
| 60 |
|
| 61 |
<Product |
| 62 |
Id='*' |
| 63 |
Name='bottom' |
| 64 |
UpgradeCode='3C90C27D-8372-4C82-B03C-020393CB983D' |
| 65 |
Manufacturer='Clement Tsang' |
| 66 |
Language='1033' |
| 67 |
Codepage='1252' |
| 68 |
Version='$(var.Version)'> |
| 69 |
|
| 70 |
<Package Id='*' |
| 71 |
Keywords='Installer' |
| 72 |
Description='A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows.' |
| 73 |
Manufacturer='Clement Tsang' |
| 74 |
InstallerVersion='450' |
| 75 |
Languages='1033' |
| 76 |
Compressed='yes' |
| 77 |
InstallScope='perMachine' |
| 78 |
SummaryCodepage='1252' |
| 79 |
/> |
| 80 |
|
| 81 |
<MajorUpgrade |
| 82 |
Schedule='afterInstallInitialize' |
| 83 |
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/> |
| 84 |
|
| 85 |
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/> |
| 86 |
<Property Id='DiskPrompt' Value='bottom Installation'/> |
| 87 |
|
| 88 |
<Directory Id='TARGETDIR' Name='SourceDir'> |
| 89 |
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'> |
| 90 |
<Directory Id='APPLICATIONFOLDER' Name='bottom'> |
| 91 |
<!-- |
| 92 |
Disabling the license sidecar file in the installer is a two step process: |
| 93 |
|
| 94 |
1. Comment out or remove the `Component` tag along with its contents. |
| 95 |
2. Comment out or remove the `ComponentRef` tag with the "License" Id |
| 96 |
attribute value further down in this file. |
| 97 |
--> |
| 98 |
<Component Id='License' Guid='*'> |
| 99 |
<File Id='LicenseFile' |
| 100 |
DiskId='1' |
| 101 |
Source='wix\License.rtf' |
| 102 |
KeyPath='yes'/> |
| 103 |
</Component> |
| 104 |
|
| 105 |
<Directory Id='Completions' Name='completions'> |
| 106 |
<Component Id='btmPowershell' Guid='*'> |
| 107 |
<File |
| 108 |
Id='btmPs1' |
| 109 |
Name='_btm.ps1' |
| 110 |
DiskId='1' |
| 111 |
Source='$(var.CargoTargetDir)\tmp\bottom\completion\_btm.ps1' |
| 112 |
KeyPath='yes'/> |
| 113 |
</Component> |
| 114 |
|
| 115 |
<Component Id='btmNu' Guid='*'> |
| 116 |
<File |
| 117 |
Id='btmNu' |
| 118 |
Name='btm.nu' |
| 119 |
DiskId='1' |
| 120 |
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.nu' |
| 121 |
KeyPath='yes'/> |
| 122 |
</Component> |
| 123 |
|
| 124 |
<Component Id='btmFish' Guid='*'> |
| 125 |
<File |
| 126 |
Id='btmFish' |
| 127 |
Name='btm.fish' |
| 128 |
DiskId='1' |
| 129 |
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.fish' |
| 130 |
KeyPath='yes'/> |
| 131 |
</Component> |
| 132 |
|
| 133 |
<Component Id='btmBash' Guid='*'> |
| 134 |
<File |
| 135 |
Id='btmBash' |
| 136 |
Name='btm.bash' |
| 137 |
DiskId='1' |
| 138 |
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.bash' |
| 139 |
KeyPath='yes'/> |
| 140 |
</Component> |
| 141 |
|
| 142 |
<Component Id='btmZsh' Guid='*'> |
| 143 |
<File |
| 144 |
Id='btmZsh' |
| 145 |
Name='_btm' |
| 146 |
DiskId='1' |
| 147 |
Source='$(var.CargoTargetDir)\tmp\bottom\completion\_btm' |
| 148 |
KeyPath='yes'/> |
| 149 |
</Component> |
| 150 |
</Directory> |
| 151 |
|
| 152 |
<Directory Id='Bin' Name='bin'> |
| 153 |
<Component Id='Path' Guid='15D841CF-0363-4DBB-BF55-ECCB43B9EB03' KeyPath='yes'> |
| 154 |
<Environment |
| 155 |
Id='PATH' |
| 156 |
Name='PATH' |
| 157 |
Value='[Bin]' |
| 158 |
Permanent='no' |
| 159 |
Part='last' |
| 160 |
Action='set' |
| 161 |
System='yes'/> |
| 162 |
</Component> |
| 163 |
<Component Id='binary0' Guid='*'> |
| 164 |
<File |
| 165 |
Id='exe0' |
| 166 |
Name='btm.exe' |
| 167 |
DiskId='1' |
| 168 |
Source='$(var.CargoTargetBinDir)\btm.exe' |
| 169 |
KeyPath='yes'/> |
| 170 |
</Component> |
| 171 |
</Directory> |
| 172 |
</Directory> |
| 173 |
</Directory> |
| 174 |
</Directory> |
| 175 |
|
| 176 |
<Feature |
| 177 |
Id='Binaries' |
| 178 |
Title='Application' |
| 179 |
Description='Installs all binaries and the license.' |
| 180 |
Level='1' |
| 181 |
ConfigurableDirectory='APPLICATIONFOLDER' |
| 182 |
AllowAdvertise='no' |
| 183 |
Display='expand' |
| 184 |
Absent='disallow'> |
| 185 |
<!-- |
| 186 |
Comment out or remove the following `ComponentRef` tag to remove |
| 187 |
the license sidecar file from the installer. |
| 188 |
--> |
| 189 |
<ComponentRef Id='License'/> |
| 190 |
|
| 191 |
<ComponentRef Id='btmPowershell'/> |
| 192 |
<ComponentRef Id='btmNu'/> |
| 193 |
<ComponentRef Id='btmFish'/> |
| 194 |
<ComponentRef Id='btmBash'/> |
| 195 |
<ComponentRef Id='btmZsh'/> |
| 196 |
|
| 197 |
<ComponentRef Id='binary0'/> |
| 198 |
|
| 199 |
<Feature |
| 200 |
Id='Environment' |
| 201 |
Title='PATH Environment Variable' |
| 202 |
Description='Add the install location of the [ProductName] executable to the PATH system environment variable. This allows the [ProductName] executable to be called from any location.' |
| 203 |
Level='1' |
| 204 |
Absent='allow'> |
| 205 |
<ComponentRef Id='Path'/> |
| 206 |
</Feature> |
| 207 |
</Feature> |
| 208 |
|
| 209 |
<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/> |
| 210 |
|
| 211 |
|
| 212 |
<!-- |
| 213 |
Uncomment the following `Icon` and `Property` tags to change the product icon. |
| 214 |
|
| 215 |
The product icon is the graphic that appears in the Add/Remove |
| 216 |
Programs control panel for the application. |
| 217 |
--> |
| 218 |
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>--> |
| 219 |
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />--> |
| 220 |
|
| 221 |
<Property Id='ARPHELPLINK' Value='https://bottom.pages.dev/stable'/> |
| 222 |
|
| 223 |
<UI> |
| 224 |
<UIRef Id='WixUI_FeatureTree'/> |
| 225 |
<!-- |
| 226 |
Disabling the EULA dialog in the installer is a two step process: |
| 227 |
|
| 228 |
1. Uncomment the following two `Publish` tags |
| 229 |
2. Comment out or remove the `<WiXVariable Id='WixUILicenseRtf'...` tag further down |
| 230 |
|
| 231 |
--> |
| 232 |
<!--<Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='CustomizeDlg' Order='99'>1</Publish>--> |
| 233 |
<!--<Publish Dialog='CustomizeDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg' Order='99'>1</Publish>--> |
| 234 |
|
| 235 |
</UI> |
| 236 |
|
| 237 |
<!-- |
| 238 |
Disabling the EULA dialog in the installer requires commenting out |
| 239 |
or removing the following `WixVariable` tag |
| 240 |
--> |
| 241 |
<WixVariable Id='WixUILicenseRtf' Value='wix\License.rtf'/> |
| 242 |
|
| 243 |
|
| 244 |
<!-- |
| 245 |
Uncomment the next `WixVariable` tag to customize the installer's |
| 246 |
Graphical User Interface (GUI) and add a custom banner image across |
| 247 |
the top of each screen. See the WiX Toolset documentation for details |
| 248 |
about customization. |
| 249 |
|
| 250 |
The banner BMP dimensions are 493 x 58 pixels. |
| 251 |
--> |
| 252 |
<!--<WixVariable Id='WixUIBannerBmp' Value='wix\Banner.bmp'/>--> |
| 253 |
|
| 254 |
|
| 255 |
<!-- |
| 256 |
Uncomment the next `WixVariable` tag to customize the installer's |
| 257 |
Graphical User Interface (GUI) and add a custom image to the first |
| 258 |
dialog, or screen. See the WiX Toolset documentation for details about |
| 259 |
customization. |
| 260 |
|
| 261 |
The dialog BMP dimensions are 493 x 312 pixels. |
| 262 |
--> |
| 263 |
<!--<WixVariable Id='WixUIDialogBmp' Value='wix\Dialog.bmp'/>--> |
| 264 |
|
| 265 |
</Product> |
| 266 |
|
| 267 |
</Wix> |