Revert "Updated the magefile.go to use new version of archiver library"

This reverts commit 6585e6672f.

There's been some weird changes added to the upstream archiver library which
break the build. Since this is only used in the build process, I'm in no hurry
to update it.
This commit is contained in:
Will Rouesnel
2019-07-03 22:44:24 +10:00
parent 97554928e6
commit bb8b37cbeb

View File

@@ -587,30 +587,13 @@ func Release() error {
if platform.OS == "windows" {
// build a zip binary as well
// creates a Zip configuration
z := archiver.Zip{
CompressionLevel: 3,
MkdirAll: true,
SelectiveCompression: true,
ContinueOnError: false,
OverwriteExisting: false,
ImplicitTopLevelFolder: false,
}
err := z.Archive([]string{platform.ArchiveDir()}, fmt.Sprintf("%s.zip", platform.ReleaseBase()))
err := archiver.Zip.Make(fmt.Sprintf("%s.zip", platform.ReleaseBase()), []string{platform.ArchiveDir()})
if err != nil {
return err
}
}
// build tar gz
//creates TarGz configuration
t := archiver.TarGz{
CompressionLevel: 3,
}
err := t.Archive([]string{platform.ArchiveDir()}, fmt.Sprintf("%s.tar.gz", platform.ReleaseBase()))
err := archiver.TarGz.Make(fmt.Sprintf("%s.tar.gz", platform.ReleaseBase()), []string{platform.ArchiveDir()})
if err != nil {
return err
}