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

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3331
This commit is contained in:
Jakob Borg 2016-06-20 09:49:19 +00:00 committed by Audrius Butkevicius
parent 89a29946f9
commit 379e2119a8
1 changed files with 1 additions and 1 deletions

View File

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