Skip to content

Commit d55bf48

Browse files
create ds-store
1 parent e3fc858 commit d55bf48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: scripts/download_chromium.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ browserFetcher
4141
if (platform === 'mac' && arch === 'arm64') {
4242
// follow symlinks, dereference symlinks and copy them as files
4343
const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`;
44-
child_process.execSync(`rm ${dsStorePath} && touch ${dsStorePath}`)
44+
if (!fs.existsSync(dsStorePath)) {
45+
child_process.execSync(`touch ${dsStorePath}`)
46+
}
4547
} else {
4648
// follow symlinks, copy them as symlinks
4749
child_process.execSync(`cp -RP ${execPath} ${outputPath}`);

0 commit comments

Comments
 (0)