调整编译逻辑了,增加自写编译器,限定编译平台为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
+16
View File
@@ -0,0 +1,16 @@
//go:build windows
package main
import (
"os/exec"
"syscall"
)
// setWindowHide 在 Windows 上隐藏 frpc 命令行窗口
func setWindowHide(cmd *exec.Cmd) {
if cmd.SysProcAttr == nil {
cmd.SysProcAttr = &syscall.SysProcAttr{}
}
cmd.SysProcAttr.HideWindow = true
}