Skip to content

Commit

Permalink
create ds-store
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWierzbicki committed Feb 23, 2022
1 parent e3fc858 commit 8629c68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/download_chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 8629c68

Please sign in to comment.