dist: adapt to archiver's refactor

Signed-off-by: Tw <tw19881113@gmail.com>
This commit is contained in:
Tw 2016-10-10 16:39:27 +08:00
parent 5d9989405a
commit b48bda4a6d

4
dist/automate.go vendored
View File

@ -81,12 +81,12 @@ func main() {
fmt.Printf("== Compressing %s\n", baseFilename) fmt.Printf("== Compressing %s\n", baseFilename)
if p.archive == "zip" { if p.archive == "zip" {
err := archiver.Zip(archive, archiveContents) err := archiver.Zip.Make(archive, archiveContents)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
} else if p.archive == "tar.gz" { } else if p.archive == "tar.gz" {
err := archiver.TarGz(archive, archiveContents) err := archiver.TarGz.Make(archive, archiveContents)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }