Skip to content

Instantly share code, notes, and snippets.

@subframe7536
Created August 24, 2024 11:23
Show Gist options
  • Select an option

  • Save subframe7536/6106a39c7fba2b44b50d53bcfd5c23d1 to your computer and use it in GitHub Desktop.

Select an option

Save subframe7536/6106a39c7fba2b44b50d53bcfd5c23d1 to your computer and use it in GitHub Desktop.
Powershell script to custom github mirror for bun download / upgrade
param(
[string]$githubMirror
)
$installScript = irm bun.sh/install.ps1
if ($githubMirror) {
$parsedURL = '$BaseURL = "https://' + $githubMirror + '/oven-sh/bun/releases"'
$installScript = $installScript -replace '\$BaseURL = "https://github.com/oven-sh/bun/releases"', $parsedURL
}
iex $installScript
@subframe7536
Copy link
Author

或者自己部署一个 cf 代理 https://github.com/subframe7536/cf-workers-proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment