feat: add verbose build flags

This commit is contained in:
Chen Asraf 2024-09-03 01:11:09 +03:00 committed by GitHub
parent 20b61c9d20
commit a892996d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ func build(packageName, destDir string, platform map[string]string, ldflags stri
/*------------*/
// command-line options for the `go build` command
buildOptions := []string{"build", "-buildmode", "exe", "-ldflags", ldflags, "-o", buildFilePath, packagePath}
buildOptions := []string{"build", "-v", "-x", "-buildmode", "exe", "-ldflags", ldflags, "-o", buildFilePath, packagePath}
// generate `go build` command
buildCmd := exec.Command("go", buildOptions...)