Skip to content

Commit 3071cd0

Browse files
create all required ds stores
1 parent 8629c68 commit 3071cd0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/download_chromium.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ browserFetcher
4242
// follow symlinks, dereference symlinks and copy them as files
4343
child_process.execSync(`cp -LR ${execPath} ${outputPath}`);
4444

45-
const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`;
46-
if (!fs.existsSync(dsStorePath)) {
47-
child_process.execSync(`touch ${dsStorePath}`)
45+
const dsStore = '.DS_Store'
46+
const dsStorePaths = [`${outputPath}/${dsStore}`, `${outputPath}/${parts[parts.length - 1]}/.DS_Store`]
47+
for (const path of dsStorePaths) {
48+
if (!fs.existsSync(path)) {
49+
child_process.execSync(`touch ${path}`)
50+
}
4851
}
4952
} else {
5053
// follow symlinks, copy them as symlinks

0 commit comments

Comments
 (0)