位置变更,Preview正在重构

This commit is contained in:
2026-08-07 20:18:12 +08:00
parent 86df4bf3c5
commit 41eb21f512
20 changed files with 185 additions and 77 deletions
+3 -10
View File
@@ -1,19 +1,12 @@
//go:build !linux
//go:build !linux && !windows
package process
import (
"os/exec"
"runtime"
"syscall"
)
// setProcessAttributes 设置进程属性 (非 Linux)
// setProcessAttributes 其他平台(macOS/FreeBSD 等)不做特殊设置
func setProcessAttributes(cmd *exec.Cmd) {
if runtime.GOOS == "windows" {
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
}
}
// 其他平台不做特殊设置
// 其他平台不需要特殊设置
}