Skip to content

Commit dddaad9

Browse files
committed
Fix release archive using wrong path delimiter
This caused the files in the .zip file to appear flattened when opened with 7zip.
1 parent 41271d5 commit dddaad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dist/compress.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func addPathToZip(zipWriter *zip.Writer, srcPath, archiveBasePath string, ignore
6262
return err
6363
}
6464

65-
header.Name = archivePath
65+
header.Name = filepath.ToSlash(archivePath)
6666
header.Method = zip.Deflate
6767

6868
writer, err := zipWriter.CreateHeader(header)

0 commit comments

Comments
 (0)