1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fixed test

This commit is contained in:
Carlos Alexandro Becker 2017-03-22 21:25:41 -03:00
parent 923feea3b9
commit 4fdfd47bd6
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -55,7 +55,7 @@ func (Pipe) Run(ctx *context.Context) error {
}
if ctx.Config.Archive.NameTemplate == "" {
ctx.Config.Archive.NameTemplate = "{{.BinaryName}}_{{.Os}}_{{.Arch}}"
ctx.Config.Archive.NameTemplate = "{{.Binary}}_{{.Os}}_{{.Arch}}"
}
if ctx.Config.Archive.Format == "" {
ctx.Config.Archive.Format = "tar.gz"
@ -80,7 +80,7 @@ func (Pipe) Run(ctx *context.Context) error {
ctx.Config.Archive.Files = files
}
if ctx.Config.Brew.Install == "" {
ctx.Config.Brew.Install = "bin.install \"" + ctx.Config.Build.BinaryName + "\""
ctx.Config.Brew.Install = "bin.install \"" + ctx.Config.Build.Binary + "\""
}
return nil
}