diff --git a/installers/binstall/scripts/nix/install.sh b/installers/binstall/scripts/nix/install.sh index db4b54d79..cba997ac0 100755 --- a/installers/binstall/scripts/nix/install.sh +++ b/installers/binstall/scripts/nix/install.sh @@ -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 diff --git a/installers/binstall/scripts/windows/install.ps1 b/installers/binstall/scripts/windows/install.ps1 index 543f74d6e..8835a07c3 100644 --- a/installers/binstall/scripts/windows/install.ps1 +++ b/installers/binstall/scripts/windows/install.ps1 @@ -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"