From 8629c6857d8e5efdfc1311bffcf5ece94496f21f Mon Sep 17 00:00:00 2001 From: Artur Wierzbicki Date: Wed, 23 Feb 2022 14:07:13 +0400 Subject: [PATCH] create ds-store --- scripts/download_chromium.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/download_chromium.js b/scripts/download_chromium.js index 12ff663a..b4e6431d 100644 --- a/scripts/download_chromium.js +++ b/scripts/download_chromium.js @@ -40,8 +40,12 @@ browserFetcher if (platform === 'mac' && arch === 'arm64') { // follow symlinks, dereference symlinks and copy them as files + child_process.execSync(`cp -LR ${execPath} ${outputPath}`); + const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`; - child_process.execSync(`rm ${dsStorePath} && touch ${dsStorePath}`) + if (!fs.existsSync(dsStorePath)) { + child_process.execSync(`touch ${dsStorePath}`) + } } else { // follow symlinks, copy them as symlinks child_process.execSync(`cp -RP ${execPath} ${outputPath}`);