Skip to content

Commit e3fc858

Browse files
recreate ds-store
1 parent 2769944 commit e3fc858

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/download_chromium.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path');
22
const child_process = require('child_process');
33
const Puppeteer = require('puppeteer');
44
const { PUPPETEER_REVISIONS } = require('puppeteer/lib/cjs/puppeteer/revisions')
5+
const fs = require('fs')
56

67
const archArg = process.argv[2];
78
let [
@@ -39,7 +40,8 @@ browserFetcher
3940

4041
if (platform === 'mac' && arch === 'arm64') {
4142
// follow symlinks, dereference symlinks and copy them as files
42-
child_process.execSync(`cp -LR ${execPath} ${outputPath}`);
43+
const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`;
44+
child_process.execSync(`rm ${dsStorePath} && touch ${dsStorePath}`)
4345
} else {
4446
// follow symlinks, copy them as symlinks
4547
child_process.execSync(`cp -RP ${execPath} ${outputPath}`);

0 commit comments

Comments
 (0)