Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8629c68

Browse files
committedFeb 23, 2022
create ds-store
1 parent e3fc858 commit 8629c68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎scripts/download_chromium.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ browserFetcher
4040

4141
if (platform === 'mac' && arch === 'arm64') {
4242
// follow symlinks, dereference symlinks and copy them as files
43+
child_process.execSync(`cp -LR ${execPath} ${outputPath}`);
44+
4345
const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`;
44-
child_process.execSync(`rm ${dsStorePath} && touch ${dsStorePath}`)
46+
if (!fs.existsSync(dsStorePath)) {
47+
child_process.execSync(`touch ${dsStorePath}`)
48+
}
4549
} else {
4650
// follow symlinks, copy them as symlinks
4751
child_process.execSync(`cp -RP ${execPath} ${outputPath}`);

0 commit comments

Comments
 (0)
Please sign in to comment.