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 d55bf48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/download_chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit d55bf48

Please sign in to comment.