mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-22 21:17:33 +00:00
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:
parent
41271d5321
commit
dddaad938f
2
scripts/dist/compress.go
vendored
2
scripts/dist/compress.go
vendored
@ -62,7 +62,7 @@ func addPathToZip(zipWriter *zip.Writer, srcPath, archiveBasePath string, ignore
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
header.Name = archivePath
|
header.Name = filepath.ToSlash(archivePath)
|
||||||
header.Method = zip.Deflate
|
header.Method = zip.Deflate
|
||||||
|
|
||||||
writer, err := zipWriter.CreateHeader(header)
|
writer, err := zipWriter.CreateHeader(header)
|
||||||
|
Loading…
Reference in New Issue
Block a user