Browse Source

build: Use forward slashes in Zip and Tar files (fixes #3330)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3331
Jakob Borg 9 years ago
parent
commit
379e2119a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.go

+ 1 - 1
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") {