File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -587,13 +587,30 @@ func Release() error {
587587
588588if platform .OS == "windows" {
589589// build a zip binary as well
590- err := archiver .Zip .Make (fmt .Sprintf ("%s.zip" , platform .ReleaseBase ()), []string {platform .ArchiveDir ()})
590+
591+ // creates a Zip configuration
592+ z := archiver.Zip {
593+ CompressionLevel : 3 ,
594+ MkdirAll : true ,
595+ SelectiveCompression : true ,
596+ ContinueOnError : false ,
597+ OverwriteExisting : false ,
598+ ImplicitTopLevelFolder : false ,
599+ }
600+
601+ err := z .Archive ([]string {platform .ArchiveDir ()}, fmt .Sprintf ("%s.zip" , platform .ReleaseBase ()))
591602if err != nil {
592603return err
593604}
594605}
595606// build tar gz
596- err := archiver .TarGz .Make (fmt .Sprintf ("%s.tar.gz" , platform .ReleaseBase ()), []string {platform .ArchiveDir ()})
607+
608+ //creates TarGz configuration
609+ t := archiver.TarGz {
610+ CompressionLevel :3 ,
611+ }
612+
613+ err := t .Archive ([]string {platform .ArchiveDir ()}, fmt .Sprintf ("%s.tar.gz" , platform .ReleaseBase ()))
597614if err != nil {
598615return err
599616}
You can’t perform that action at this time.
0 commit comments