Skip to content

Commit

Permalink
create all required ds stores
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWierzbicki committed Feb 23, 2022
1 parent 8629c68 commit 3071cd0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/download_chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ browserFetcher
// 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`;
if (!fs.existsSync(dsStorePath)) {
child_process.execSync(`touch ${dsStorePath}`)
const dsStore = '.DS_Store'
const dsStorePaths = [`${outputPath}/${dsStore}`, `${outputPath}/${parts[parts.length - 1]}/.DS_Store`]
for (const path of dsStorePaths) {
if (!fs.existsSync(path)) {
child_process.execSync(`touch ${path}`)
}
}
} else {
// follow symlinks, copy them as symlinks
Expand Down

0 comments on commit 3071cd0

Please sign in to comment.