Skip to content

Commit

Permalink
Fix release archive using wrong path delimiter
Browse files Browse the repository at this point in the history
This caused the files in the .zip file to appear flattened when opened with 7zip.
  • Loading branch information
Dadido3 committed Feb 8, 2024
1 parent 41271d5 commit dddaad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dist/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func addPathToZip(zipWriter *zip.Writer, srcPath, archiveBasePath string, ignore
return err
}

header.Name = archivePath
header.Name = filepath.ToSlash(archivePath)
header.Method = zip.Deflate

writer, err := zipWriter.CreateHeader(header)
Expand Down

0 comments on commit dddaad9

Please sign in to comment.