fix hvnc issue, fix build watcher issue, fix wrong type of exe being sent on updates.

This commit is contained in:
KingKDot
2026-05-05 19:31:55 -05:00
parent fefa30e7b9
commit ec62401911
12 changed files with 193 additions and 81 deletions
@@ -4,6 +4,7 @@ package sysinfo
import (
"fmt"
"runtime"
"strings"
"unsafe"
@@ -43,3 +44,15 @@ func totalRAM() string {
mb := float64(total) / (1024 * 1024)
return fmt.Sprintf("%.0f MB", mb)
}
func HostArch() string {
if machine, err := unix.Sysctl("hw.machine"); err == nil {
switch machine {
case "x86_64":
return "amd64"
case "arm64":
return "arm64"
}
}
return runtime.GOARCH
}