Fix release archive using wrong path delimiter

This caused the files in the .zip file to appear flattened when opened with 7zip.
This commit is contained in:
David Vogel 2024-02-08 11:48:32 +01:00
parent 41271d5321
commit dddaad938f

View File

@ -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)