mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
fix Apple Silicon check
This commit is contained in:
parent
3c25a73ae8
commit
00639677f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue