new mac update for permission issues.

This commit is contained in:
KingKDot
2026-04-13 10:49:36 -05:00
parent 66393d5ba4
commit 792de1e22c
21 changed files with 480 additions and 29 deletions
+9 -2
View File
@@ -349,14 +349,21 @@ func firstNonEmpty(values ...string) string {
}
func deriveHWID() string {
machineID := platformMachineID()
if machineID != "" {
h := sha256.New()
h.Write([]byte(machineID))
h.Write([]byte("|"))
h.Write([]byte(runtime.GOOS))
return hex.EncodeToString(h.Sum(nil))
}
// fallback
h := sha256.New()
h.Write([]byte(hostname()))
h.Write([]byte("|"))
h.Write([]byte(os.Getenv("USERNAME")))
h.Write([]byte("|"))
h.Write([]byte(runtime.GOOS))
h.Write([]byte("|"))
h.Write([]byte(runtime.GOARCH))
return hex.EncodeToString(h.Sum(nil))
}