mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-07 13:31:37 +02:00
cleanup
This commit is contained in:
parent
e3220b8257
commit
dd786912f9
@ -35,14 +35,13 @@ func (Pipe) Run(config config.ProjectConfig) error {
|
||||
}
|
||||
|
||||
func build(system, arch string, config config.ProjectConfig) error {
|
||||
ldflags := config.Build.Ldflags + " -X main.version=" + config.Git.CurrentTag
|
||||
name, err := config.ArchiveName(system, arch)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ldflags := config.Build.Ldflags + " -X main.version=" + config.Git.CurrentTag
|
||||
output := "dist/" + name + "/" + config.BinaryName
|
||||
log.Println("Building", output, "...")
|
||||
log.Println("'" + ldflags + "'")
|
||||
cmd := exec.Command(
|
||||
"go",
|
||||
"build",
|
||||
|
Loading…
x
Reference in New Issue
Block a user