调整编译逻辑了,增加自写编译器,限定编译平台为Windows

This commit is contained in:
2026-07-24 19:28:30 +08:00
parent 45b27404a8
commit 2105ed9d8e
4 changed files with 218 additions and 2 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ import (
"runtime"
"strings"
"sync"
"syscall"
"text/template"
)
@@ -174,7 +173,7 @@ func StartFrpc() error {
cmd := exec.Command(frpcPath, "-c", "./frpc.toml")
if runtime.GOOS == "windows" {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
setWindowHide(cmd)
}
if err := cmd.Start(); err != nil {
return fmt.Errorf("启动 frpc 失败: %w", err)