From dddaad938f850a517e207cef75f56cd4f60e77cc Mon Sep 17 00:00:00 2001 From: David Vogel Date: Thu, 8 Feb 2024 11:48:32 +0100 Subject: [PATCH] Fix release archive using wrong path delimiter This caused the files in the .zip file to appear flattened when opened with 7zip. --- scripts/dist/compress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dist/compress.go b/scripts/dist/compress.go index 123cd7b..90d0754 100644 --- a/scripts/dist/compress.go +++ b/scripts/dist/compress.go @@ -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)