From e3040e2ca670537139bbaf31cc86f6748ea48ed0 Mon Sep 17 00:00:00 2001 From: Renan Castro Date: Mon, 31 Jan 2022 10:07:27 -0300 Subject: [PATCH] When creating a tarball, ensure the fmode and dmode are set to readable/writable for sharing tarballs between windows/unixes --- tools/fs/files.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/fs/files.ts b/tools/fs/files.ts index e22feaa457..674bd3f661 100644 --- a/tools/fs/files.ts +++ b/tools/fs/files.ts @@ -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());