节点自动升级功能之前的版本

This commit is contained in:
robin
2026-03-02 23:42:55 +08:00
parent 2a76d1773d
commit 853897a6f8
29 changed files with 1063 additions and 81 deletions

View File

@@ -94,7 +94,11 @@ func (a *AppCmd) runStart() {
return
}
cmd := exec.Command(os.Args[0])
exe, _ := os.Executable()
if len(exe) == 0 {
exe = os.Args[0]
}
cmd := exec.Command(exe)
cmd.Env = append(os.Environ(), "EdgeBackground=on")
err := cmd.Start()
if err != nil {