File tree 3 files changed +23
-4
lines changed
src/rustup-win-installer/msi
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ environment:
8
8
MSYS_BITS : 64
9
9
- TARGET : i686-pc-windows-msvc
10
10
- TARGET : x86_64-pc-windows-msvc
11
+ - TARGET : i686-pc-windows-msvc
12
+ BUILD_MSI : 1
11
13
access_token :
12
14
secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
13
15
branches :
@@ -34,6 +36,10 @@ install:
34
36
- if defined MINGW_ARCHIVE curl -L --retry 4 "%MINGW_URL%" -o "%MINGW_ARCHIVE%"
35
37
- if defined MINGW_ARCHIVE 7z x -y "%MINGW_ARCHIVE%" > nul
36
38
- if defined MINGW_ARCHIVE set PATH=%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
39
+
40
+ # set cargo features for MSI if requested (otherwise empty string)
41
+ - set FEATURES=
42
+ - if defined BUILD_MSI set FEATURES=--features msi-installed
37
43
38
44
# let's see what we got
39
45
- where gcc rustc cargo
@@ -44,9 +50,17 @@ install:
44
50
build : false
45
51
46
52
test_script :
47
- - cargo build --release --target %TARGET%
48
- - cargo test --release -p rustup-dist --target %TARGET%
49
- - cargo test --release --target %TARGET%
53
+ - cargo build --release --target %TARGET% %FEATURES
54
+ - cargo test --release -p rustup-dist --target %TARGET% %FEATURES%
55
+ - cargo test --release --target %TARGET% %FEATURES%
56
+ - ps : |
57
+ if($env:BUILD_MSI) {
58
+ cd src\rustup-win-installer
59
+ cargo build --release
60
+ cd msi
61
+ .\build.ps1
62
+ cd ..\..\..
63
+ }
50
64
51
65
notifications :
52
66
- provider : Webhook
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if ($env:APPVEYOR_REPO_BRANCH -eq "auto") {
6
6
exit 0
7
7
}
8
8
9
+ # Don't do anything for MSI (yet)
10
+ if ($env: BUILD_MSI ) {
11
+ exit 0
12
+ }
13
+
9
14
# Copy rustup-init to rustup-setup for backwards compatibility
10
15
cp target\${env: TARGET} \release\rustup-init.exe target\${env: TARGET} release\rustup-setup.exe
11
16
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
3
3
<!-- TODO: Change paths and names accordingly -->
4
- <?define RustupCustomActionDll =" ..\target\debug \rustup_msi.dll" ?>
4
+ <?define RustupCustomActionDll =" ..\target\release \rustup_msi.dll" ?>
5
5
<?define RustupExe =" ..\..\..\target\release\rustup-init.exe" ?>
6
6
7
7
<Product Id =" *" Name =" rustup" Language =" 1033" Version =" $(env.CFG_VER_MAJOR).$(env.CFG_VER_MINOR).$(env.CFG_VER_PATCH).0" Manufacturer =" The Rust Project Developers" UpgradeCode =" 09acbb1c-7123-44ac-b2a9-4a04b28ced11" >
You can’t perform that action at this time.
0 commit comments