From d55bf48a5aa73a0f9b13f10a75ba6caadc64cb26 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/download_chromium.js b/scripts/download_chromium.js index 12ff663a..db808a2a 100644 --- a/scripts/download_chromium.js +++ b/scripts/download_chromium.js @@ -41,7 +41,9 @@ browserFetcher if (platform === 'mac' && arch === 'arm64') { // follow symlinks, dereference symlinks and copy them as files 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}`);