mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
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:
parent
89a29946f9
commit
379e2119a8
2
build.go
2
build.go
@ -879,7 +879,7 @@ func zipFile(out string, files []archiveFile) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
fh.Name = f.dst
|
fh.Name = filepath.ToSlash(f.dst)
|
||||||
fh.Method = zip.Deflate
|
fh.Method = zip.Deflate
|
||||||
|
|
||||||
if strings.HasSuffix(f.dst, ".txt") {
|
if strings.HasSuffix(f.dst, ".txt") {
|
||||||
|
Loading…
Reference in New Issue
Block a user