Lines Matching +full:invoke +full:- +full:webrequest
18 …b.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-win64.zip"
25 …RUSTUP_INIT_URL = "https://static.rust-lang.org/rustup/archive/$RUSTUP_INIT_VERSION/x86_64-pc-wind…
26 $RUSTUP_INIT = $BASE_DIR + 'rustup-init.exe'
29 … = "https://github.com/cargo-bins/cargo-binstall/releases/download/$CARGO_BINSTALL_VERSION/cargo-b…
31 Write-Host "Installing in $BASE_DIR"
33 if (!(Test-Path $BASE_DIR -PathType Container)) {
34 New-Item -ItemType Directory -Force -Path $BASE_DIR
37 Set-Location $BASE_DIR
40 Invoke-WebRequest $PROTOC_URL -Out $PROTOC_ZIP
41 Write-Host "Verifying protoc integrity"
42 if ((Get-FileHash $PROTOC_ZIP -Algorithm SHA256).Hash -ne $PROTOC_SHA256)
44 Write-Host "$PROTOC_ZIP sha did not match"
47 Expand-Archive -Path $PROTOC_ZIP -DestinationPath $PROTOC_DIR
53 # Download rustup-init that helps setting up rustup and rust toolchain.
55 Invoke-WebRequest $RUSTUP_INIT_URL -Out $RUSTUP_INIT
56 Write-Host "Verifying rustup_init integrity"
57 if ((Get-FileHash $RUSTUP_INIT -Algorithm SHA256).Hash -ne $RUSTUP_INIT_SHA256)
59 Write-Host "$RUSTUP_INIT sha did not match"
70 $BINSTALL_ZIP = New-TemporaryFile
71 Invoke-WebRequest $CARGO_BINSTALL_URL -Out $BINSTALL_ZIP
72 $BINSTALL_DEST=((Get-Command cargo) | Get-Item).DirectoryName
73 Expand-Archive -Path $BINSTALL_ZIP -DestinationPath $BINSTALL_DEST
76 cargo binstall --no-confirm cargo-nextest --version "0.9.49"