chore: rebuild core updater

This commit is contained in:
wwqgtxx
2025-07-24 02:06:50 +08:00
parent b6dde7ded7
commit dfe6e0509b
8 changed files with 208 additions and 377 deletions

View File

@@ -0,0 +1,24 @@
package features
import "runtime/debug"
var (
GOARM string
GOMIPS string
GOAMD64 string
)
func init() {
if info, ok := debug.ReadBuildInfo(); ok {
for _, bs := range info.Settings {
switch bs.Key {
case "GOARM":
GOARM = bs.Value
case "GOMIPS":
GOMIPS = bs.Value
case "GOAMD64":
GOAMD64 = bs.Value
}
}
}
}