Commit b48bda4a authored by Tw's avatar Tw

dist: adapt to archiver's refactor

Signed-off-by: default avatarTw <tw19881113@gmail.com>
parent 5d998940
...@@ -81,12 +81,12 @@ func main() { ...@@ -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)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment