Skip to content

Commit

Permalink
add APOLLO_ROVER_BINARY_REMOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Dec 5, 2024
1 parent d73595f commit 84ee04d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion installers/binstall/scripts/nix/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

set -u

BINARY_DOWNLOAD_PREFIX="https://github.com/apollographql/rover/releases/download"
BINARY_DOWNLOAD_PREFIX="${APOLLO_ROVER_BINARY_REMOTE:="https://github.com/apollographql/rover/releases/download"}"

# Rover version defined in root cargo.toml
# Note: this line is built automatically
Expand Down
6 changes: 5 additions & 1 deletion installers/binstall/scripts/windows/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ function Install-Binary($rover_install_args) {
}

function Download($version) {
$url = "https://github.com/apollographql/rover/releases/download/$version/rover-$version-x86_64-pc-windows-msvc.tar.gz"
$base_url = $env:APOLLO_ROVER_BINARY_REMOTE
if (-not $base_url) {
$base_url = "https://github.com/apollographql/rover/releases/download"
}
$url = "$base_url/$version/rover-$version-x86_64-pc-windows-msvc.tar.gz"
"Downloading Rover from $url" | Out-Host
$tmp = New-Temp-Dir
$dir_path = "$tmp\rover.tar.gz"
Expand Down

0 comments on commit 84ee04d

Please sign in to comment.