目录重构完成,但是Preview通道尚未可用

This commit is contained in:
2026-08-07 19:42:49 +08:00
parent 3a381c85ed
commit 86df4bf3c5
16 changed files with 1620 additions and 24 deletions
+21
View File
@@ -0,0 +1,21 @@
//go:build linux || darwin || freebsd || netbsd || openbsd || solaris
package frp
import (
"os/exec"
"syscall"
)
// setSysProcAttr 为 Unix 系统设置 Setsid
func setSysProcAttr(cmd *exec.Cmd) {
if cmd.SysProcAttr == nil {
cmd.SysProcAttr = &syscall.SysProcAttr{}
}
cmd.SysProcAttr.Setsid = true
}
// setWindowHide Unix 上不做任何事
func setWindowHide(cmd *exec.Cmd) {
// Unix 不需要隐藏窗口
}