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}`);