diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-01-17 15:44:57 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-01-17 15:46:09 +0100 |
| commit | 8df4f20e3f54329ebba6c5b7a5115bfe9e882935 (patch) | |
| tree | 6fc1d587116f0e468d0e4431be24ba2b73f93bac | |
| parent | 5ef9045e71f2bb21c37d1a1db4b3787327308e4a (diff) | |
| download | mullvadvpn-8df4f20e3f54329ebba6c5b7a5115bfe9e882935.tar.xz mullvadvpn-8df4f20e3f54329ebba6c5b7a5115bfe9e882935.zip | |
Change how nightly Rust is downloaded
| -rw-r--r-- | appveyor.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml index a27cfaa88a..e91e434080 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -31,9 +31,17 @@ install: } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') { $Env:PATH += ';C:\msys64\mingw32\bin' } - - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + # Download Rust differently for nightly since there are some checksum problems when using rustup + - ps: >- + If ($Env:RUST_VERSION -eq 'nightly') { + Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe" + cmd /c rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" + $Env:PATH += ';C:\Program Files (x86)\Rust\bin' + } Else { + cmd /c curl -sSf -o rustup-init.exe https://win.rustup.rs/ + cmd /c rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% + $Env:PATH += ';C:\Users\appveyor\.cargo\bin' + } - rustc -Vv - cargo -V |
