支持多平台linux-amd64 linux-arm64 win

This commit is contained in:
BBIT-Kai
2026-01-04 11:44:10 +08:00
parent 7b669ffbd0
commit 209d087fa5
24 changed files with 227 additions and 49 deletions
+20
View File
@@ -0,0 +1,20 @@
//go:build linux
// +build linux
package main
import (
"os"
"os/exec"
)
type updaterLauncher struct{}
func (u *updaterLauncher) Start(args []string) error {
cmd := exec.Command("./updater", args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
// Linux 下先不做进程组处理,保证能跑
return cmd.Start()
}