From 00639677f5ef90db7bccb49c61fee78ed35d2837 Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Tue, 14 Sep 2021 11:24:42 -0500 Subject: [PATCH] fix Apple Silicon check --- v2/internal/system/system_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2/internal/system/system_darwin.go b/v2/internal/system/system_darwin.go index d7dfa7f7c..671c6bd76 100644 --- a/v2/internal/system/system_darwin.go +++ b/v2/internal/system/system_darwin.go @@ -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"