5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 15:42:53 +08:00

fix Apple Silicon check

This commit is contained in:
Travis McLane 2021-09-14 11:24:42 -05:00
parent 3c25a73ae8
commit 00639677f5
No known key found for this signature in database
GPG Key ID: 7BA828AE61CD949B

View File

@ -7,6 +7,7 @@ import (
"github.com/wailsapp/wails/v2/internal/system/packagemanager"
"os/exec"
"strings"
"syscall"
"github.com/wailsapp/wails/v2/internal/system/operatingsystem"
)
@ -16,7 +17,7 @@ import (
func init() {
r, err := syscall.Sysctl("sysctl.proc_translated")
if err != nil {
return false
return
}
IsAppleSilicon = r == "\x00\x00\x00" || r == "\x01\x00\x00"