diff --git a/frontend/wailsjs/go/main/App.d.ts b/frontend/wailsjs/go/main/App.d.ts old mode 100644 new mode 100755 diff --git a/frontend/wailsjs/go/main/App.js b/frontend/wailsjs/go/main/App.js old mode 100644 new mode 100755 diff --git a/resources/darwin-x64-zrok b/resources/darwin-amd64-zrok similarity index 100% rename from resources/darwin-x64-zrok rename to resources/darwin-amd64-zrok diff --git a/resources/darwin-arm64-zrok b/resources/darwin-arm64-zrok new file mode 100755 index 0000000..54cb4a9 Binary files /dev/null and b/resources/darwin-arm64-zrok differ diff --git a/zrok_darwin.go b/zrok_darwin.go index 8b32dfb..703ec87 100644 --- a/zrok_darwin.go +++ b/zrok_darwin.go @@ -1,12 +1,14 @@ package main import ( + "fmt" "os/exec" + "runtime" "syscall" ) func zrokCmd(args []string) (*exec.Cmd) { - zrokBin := "./resources/darwin-x64-zrok" + zrokBin := fmt.Sprintf("./resources/darwin-%s-zrok", runtime.GOARCH) cmd := exec.Command(zrokBin, args...) cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true, Pgid: 0} return cmd