Update goreleaser usage

This commit is contained in:
世界
2023-06-14 09:37:06 +08:00
parent 07d3652e30
commit 222687d9c5
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"go/build"
"os"
"os/exec"
@@ -11,6 +12,10 @@ import (
func main() {
build_shared.FindSDK()
if os.Getenv("build.Default.GOPATH") == "" {
os.Setenv("GOPATH", build.Default.GOPATH)
}
command := exec.Command(os.Args[1], os.Args[2:]...)
command.Stdout = os.Stdout
command.Stderr = os.Stderr