Release 1.4.0: macOS CLI builds and multi-platform update channel.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,14 +40,22 @@ func ResolveBinary(binDir string) (string, error) {
|
||||
}
|
||||
|
||||
func candidateNames() []string {
|
||||
if runtime.GOOS == "windows" {
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
return []string{
|
||||
"hysteria.exe",
|
||||
"hysteria-windows-amd64.exe",
|
||||
"hysteria-windows-amd64-avx.exe",
|
||||
}
|
||||
case "darwin":
|
||||
return []string{
|
||||
"hysteria",
|
||||
"hysteria-darwin-arm64",
|
||||
"hysteria-darwin-amd64",
|
||||
}
|
||||
default:
|
||||
return []string{"hysteria", "hysteria-linux-amd64", "hysteria-linux-arm64"}
|
||||
}
|
||||
return []string{"hysteria", "hysteria-linux-amd64"}
|
||||
}
|
||||
|
||||
// EnsureBinary downloads official Hysteria 2 release if missing.
|
||||
|
||||
Reference in New Issue
Block a user