From 668eb7c398c2e8d0b9f7beb319b7789681d7d89f Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 8 Apr 2016 10:53:29 +0000 Subject: [PATCH] build: Archives should have release name as first file name component --- build.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.go b/build.go index a56a61900..5ee3db372 100644 --- a/build.go +++ b/build.go @@ -355,6 +355,7 @@ func buildTar(target target) { for i := range target.archiveFiles { target.archiveFiles[i].src = strings.Replace(target.archiveFiles[i].src, "{{binary}}", target.binaryName, 1) target.archiveFiles[i].dst = strings.Replace(target.archiveFiles[i].dst, "{{binary}}", target.binaryName, 1) + target.archiveFiles[i].dst = name + "/" + target.archiveFiles[i].dst } tarGz(filename, target.archiveFiles) @@ -378,6 +379,7 @@ func buildZip(target target) { for i := range target.archiveFiles { target.archiveFiles[i].src = strings.Replace(target.archiveFiles[i].src, "{{binary}}", target.binaryName, 1) target.archiveFiles[i].dst = strings.Replace(target.archiveFiles[i].dst, "{{binary}}", target.binaryName, 1) + target.archiveFiles[i].dst = name + "/" + target.archiveFiles[i].dst } zipFile(filename, target.archiveFiles)