Skip to content

Commit c1abfb4

Browse files
author
Your Name
committed
Fix CI again
1 parent d28559c commit c1abfb4

File tree

2 files changed

+235
-1
lines changed

2 files changed

+235
-1
lines changed

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
[package]
22
name = "rbase"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
edition = "2021"
55
repository = "https://github.com/WorksButNotTested/rbase.git"
6+
authors = [ "WorksButNotTested" ]
7+
8+
[package.metadata.wix]
9+
upgrade-guid = "920EEC5B-D26F-452C-A791-D3422BEA91D1"
10+
path-guid = "850A57FF-CA20-4118-8984-C75D3445B262"
11+
license = false
12+
eula = false
613

714
# The profile that 'cargo dist' will build with
815
[profile.dist]

wix/main.wxs

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
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='rbase'
64+
UpgradeCode='920EEC5B-D26F-452C-A791-D3422BEA91D1'
65+
Manufacturer='WorksButNotTested'
66+
Language='1033'
67+
Codepage='1252'
68+
Version='$(var.Version)'>
69+
70+
<Package Id='*'
71+
Keywords='Installer'
72+
Manufacturer='WorksButNotTested'
73+
InstallerVersion='450'
74+
Languages='1033'
75+
Compressed='yes'
76+
InstallScope='perMachine'
77+
SummaryCodepage='1252'
78+
/>
79+
80+
<MajorUpgrade
81+
Schedule='afterInstallInitialize'
82+
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>
83+
84+
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
85+
<Property Id='DiskPrompt' Value='rbase Installation'/>
86+
87+
<Directory Id='TARGETDIR' Name='SourceDir'>
88+
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
89+
<Directory Id='APPLICATIONFOLDER' Name='rbase'>
90+
91+
<!--
92+
Enabling the license sidecar file in the installer is a four step process:
93+
94+
1. Uncomment the `Component` tag and its contents.
95+
2. Change the value for the `Source` attribute in the `File` tag to a path
96+
to the file that should be included as the license sidecar file. The path
97+
can, and probably should be, relative to this file.
98+
3. Change the value for the `Name` attribute in the `File` tag to the
99+
desired name for the file when it is installed alongside the `bin` folder
100+
in the installation directory. This can be omitted if the desired name is
101+
the same as the file name.
102+
4. Uncomment the `ComponentRef` tag with the Id attribute value of "License"
103+
further down in this file.
104+
-->
105+
<!--
106+
<Component Id='License' Guid='*'>
107+
<File Id='LicenseFile' Name='ChangeMe' DiskId='1' Source='C:\Path\To\File' KeyPath='yes'/>
108+
</Component>
109+
-->
110+
111+
<Directory Id='Bin' Name='bin'>
112+
<Component Id='Path' Guid='850A57FF-CA20-4118-8984-C75D3445B262' KeyPath='yes'>
113+
<Environment
114+
Id='PATH'
115+
Name='PATH'
116+
Value='[Bin]'
117+
Permanent='no'
118+
Part='last'
119+
Action='set'
120+
System='yes'/>
121+
</Component>
122+
<Component Id='binary0' Guid='*'>
123+
<File
124+
Id='exe0'
125+
Name='rbase.exe'
126+
DiskId='1'
127+
Source='$(var.CargoTargetBinDir)\rbase.exe'
128+
KeyPath='yes'/>
129+
</Component>
130+
</Directory>
131+
</Directory>
132+
</Directory>
133+
</Directory>
134+
135+
<Feature
136+
Id='Binaries'
137+
Title='Application'
138+
Description='Installs all binaries and the license.'
139+
Level='1'
140+
ConfigurableDirectory='APPLICATIONFOLDER'
141+
AllowAdvertise='no'
142+
Display='expand'
143+
Absent='disallow'>
144+
145+
<!--
146+
Uncomment the following `ComponentRef` tag to add the license
147+
sidecar file to the installer.
148+
-->
149+
<!--<ComponentRef Id='License'/>-->
150+
151+
<ComponentRef Id='binary0'/>
152+
153+
<Feature
154+
Id='Environment'
155+
Title='PATH Environment Variable'
156+
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.'
157+
Level='1'
158+
Absent='allow'>
159+
<ComponentRef Id='Path'/>
160+
</Feature>
161+
</Feature>
162+
163+
<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
164+
165+
166+
<!--
167+
Uncomment the following `Icon` and `Property` tags to change the product icon.
168+
169+
The product icon is the graphic that appears in the Add/Remove
170+
Programs control panel for the application.
171+
-->
172+
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>-->
173+
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />-->
174+
175+
<Property Id='ARPHELPLINK' Value='https://github.com/WorksButNotTested/rbase.git'/>
176+
177+
<UI>
178+
<UIRef Id='WixUI_FeatureTree'/>
179+
180+
<!--
181+
Enabling the EULA dialog in the installer is a three step process:
182+
183+
1. Comment out or remove the two `Publish` tags that follow the
184+
`WixVariable` tag.
185+
2. Uncomment the `<WixVariable Id='WixUILicenseRtf' Value='Path\to\Eula.rft'>` tag further down
186+
3. Replace the `Value` attribute of the `WixVariable` tag with
187+
the path to a RTF file that will be used as the EULA and
188+
displayed in the license agreement dialog.
189+
-->
190+
<Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='CustomizeDlg' Order='99'>1</Publish>
191+
<Publish Dialog='CustomizeDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg' Order='99'>1</Publish>
192+
193+
</UI>
194+
195+
196+
<!--
197+
Enabling the EULA dialog in the installer requires uncommenting
198+
the following `WixUILicenseRTF` tag and changing the `Value`
199+
attribute.
200+
-->
201+
<!-- <WixVariable Id='WixUILicenseRtf' Value='Relative\Path\to\Eula.rtf'/> -->
202+
203+
204+
<!--
205+
Uncomment the next `WixVariable` tag to customize the installer's
206+
Graphical User Interface (GUI) and add a custom banner image across
207+
the top of each screen. See the WiX Toolset documentation for details
208+
about customization.
209+
210+
The banner BMP dimensions are 493 x 58 pixels.
211+
-->
212+
<!--<WixVariable Id='WixUIBannerBmp' Value='wix\Banner.bmp'/>-->
213+
214+
215+
<!--
216+
Uncomment the next `WixVariable` tag to customize the installer's
217+
Graphical User Interface (GUI) and add a custom image to the first
218+
dialog, or screen. See the WiX Toolset documentation for details about
219+
customization.
220+
221+
The dialog BMP dimensions are 493 x 312 pixels.
222+
-->
223+
<!--<WixVariable Id='WixUIDialogBmp' Value='wix\Dialog.bmp'/>-->
224+
225+
</Product>
226+
227+
</Wix>

0 commit comments

Comments
 (0)