File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
src/rustup-win-installer/msi Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ environment:
88 MSYS_BITS : 64
99 - TARGET : i686-pc-windows-msvc
1010 - TARGET : x86_64-pc-windows-msvc
11+ - TARGET : i686-pc-windows-msvc
12+ BUILD_MSI : 1
1113 access_token :
1214 secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
1315branches :
@@ -34,6 +36,10 @@ install:
3436 - if defined MINGW_ARCHIVE curl -L --retry 4 "%MINGW_URL%" -o "%MINGW_ARCHIVE%"
3537 - if defined MINGW_ARCHIVE 7z x -y "%MINGW_ARCHIVE%" > nul
3638 - 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
3743
3844 # let's see what we got
3945 - where gcc rustc cargo
@@ -44,9 +50,17 @@ install:
4450build : false
4551
4652test_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+ }
5064
5165notifications :
5266 - provider : Webhook
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if ($env:APPVEYOR_REPO_BRANCH -eq "auto") {
66 exit 0
77}
88
9+ # Don't do anything for MSI (yet)
10+ if ($env: BUILD_MSI ) {
11+ exit 0
12+ }
13+
914# Copy rustup-init to rustup-setup for backwards compatibility
1015cp target\${env: TARGET} \release\rustup-init.exe target\${env: TARGET} release\rustup-setup.exe
1116
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
33 <!-- TODO: Change paths and names accordingly -->
4- <?define RustupCustomActionDll =" ..\target\debug \rustup_msi.dll" ?>
4+ <?define RustupCustomActionDll =" ..\target\release \rustup_msi.dll" ?>
55 <?define RustupExe =" ..\..\..\target\release\rustup-init.exe" ?>
66
77 <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