Skip to content

Commit

Permalink
build(release): fix lack of Deflate compression
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Feb 20, 2025
1 parent 10090bb commit 06b4844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func zipDirectory(zipPath, dirPath string) error {
return fmt.Errorf("failed to create ZIP header: %v", err)
}

header.Method = zip.Deflate
header.Name = filepath.Join(filepath.Base(dirPath), relPath)
zipEntry, err := zipWriter.CreateHeader(header)
if err != nil {
Expand Down Expand Up @@ -221,7 +222,7 @@ func appendChecksum(checksumFilePath, filePath string) error {

relPath, err := filepath.Rel(filepath.Dir(checksumFilePath), filePath)
if err != nil {
return fmt.Errorf("failed to get relative path: %v", err)
return fmt.Errorf("failed to get relative path: %v", err)
}
checksumLine := fmt.Sprintf("%s %s\n", hash, relPath)

Expand Down

0 comments on commit 06b4844

Please sign in to comment.