When creating a tarball, ensure the fmode and dmode are set to readable/writable for sharing tarballs between windows/unixes

This commit is contained in:
Renan Castro
2022-01-31 10:07:27 -03:00
parent fdae9dc29d
commit e3040e2ca6

View File

@@ -856,7 +856,9 @@ export function createTarGzStream(dirPath: string) {
map: (header: any) => {
header.name = `${basename}/${header.name}`
return header
}
},
readable: true, // all dirs and files should be readable
writable: true, // all dirs and files should be writable
});
return tarStream.pipe(zlib.createGzip());