Fix error in OS windows.
Changed the progressbar to the pipe protocol.
This commit is contained in:
13
src/helper/prepare_background_command_windows.go
Normal file
13
src/helper/prepare_background_command_windows.go
Normal 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}
|
||||
}
|
Reference in New Issue
Block a user