Skip to content

Commit

Permalink
Merge pull request #6 from ibokuri/master
Browse files Browse the repository at this point in the history
install: Fix darwin system info
  • Loading branch information
tristanisham authored Dec 5, 2022
2 parents e3fc7dc + ff2e8d6 commit 1c41de8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,20 @@ func getTarPath(version string, data *map[string]map[string]any) (*string, error
}

func zigStyleSysInfo() (string, string) {
var arch string
switch runtime.GOARCH {
arch := runtime.GOARCH
goos := runtime.GOOS

switch arch {
case "amd64":
arch = "x86_64"
default:
arch = runtime.GOARCH
}

return arch, runtime.GOOS
switch goos {
case "darwin":
goos = "macos"
}

return arch, goos
}

func extractTarXZ(bundle, out string) error {
Expand Down

0 comments on commit 1c41de8

Please sign in to comment.