Skip to content

Commit 06b4844

Browse files
committed
build(release): fix lack of Deflate compression
1 parent 10090bb commit 06b4844

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/release.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func zipDirectory(zipPath, dirPath string) error {
182182
return fmt.Errorf("failed to create ZIP header: %v", err)
183183
}
184184

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

222223
relPath, err := filepath.Rel(filepath.Dir(checksumFilePath), filePath)
223224
if err != nil {
224-
return fmt.Errorf("failed to get relative path: %v", err)
225+
return fmt.Errorf("failed to get relative path: %v", err)
225226
}
226227
checksumLine := fmt.Sprintf("%s %s\n", hash, relPath)
227228

0 commit comments

Comments
 (0)