mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-09-23 01:40:50 +02:00
Add files via upload
This commit is contained in:
@@ -12,8 +12,7 @@ func prepareHiddenCmd(cmd *exec.Cmd) {
|
|||||||
if cmd == nil {
|
if cmd == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
// 仅用 HideWindow:等价于 CREATE_NO_WINDOW,且 macOS/Linux 交叉编译 Windows 时
|
||||||
HideWindow: true,
|
// syscall.CREATE_NO_WINDOW 常量不可用。
|
||||||
CreationFlags: syscall.CREATE_NO_WINDOW,
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user