Skip to content

Commit

Permalink
try use cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Mar 9, 2024
1 parent f0ee7d3 commit 6e3b1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
outputName := filepath.Join("output", fmt.Sprintf("go-openbmclapi-windows-%s.exe", arch))
fmt.Printf("Building %s ...\n", outputName)
{
cmd := exec.Command("go", "build", "-o", outputName, "-ldflags", ldflags, ".")
cmd := exec.Command("cmd", "/C", "go", "build", "-o", outputName, "-ldflags", ldflags, ".")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Env = append(cmd.Env, "GOARCH="+arch)
Expand Down

0 comments on commit 6e3b1ac

Please sign in to comment.