Fix error in OS windows.

Changed the progressbar to the pipe protocol.
This commit is contained in:
2024-01-20 01:53:25 +06:00
parent ebc8832d4d
commit 77b847dde6
6 changed files with 153 additions and 89 deletions

View File

@@ -0,0 +1,13 @@
//go:build windows
// +build windows
package helper
import (
"os/exec"
"syscall"
)
func PrepareBackgroundCommand(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
}