Clash.Meta/common/cmd/cmd_windows.go

13 lines
174 B
Go
Raw Normal View History

//go:build windows
package cmd
import (
"os/exec"
"syscall"
)
func prepareBackgroundCommand(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
}