From 379e2119a813f167afc4b4ed4734145e6559df3f Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 20 Jun 2016 09:49:19 +0000 Subject: [PATCH] build: Use forward slashes in Zip and Tar files (fixes #3330) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3331 --- build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.go b/build.go index 9306b065b..6e7a9017a 100644 --- a/build.go +++ b/build.go @@ -879,7 +879,7 @@ func zipFile(out string, files []archiveFile) { if err != nil { log.Fatal(err) } - fh.Name = f.dst + fh.Name = filepath.ToSlash(f.dst) fh.Method = zip.Deflate if strings.HasSuffix(f.dst, ".txt") {