File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const path = require('path');
2
2
const child_process = require ( 'child_process' ) ;
3
3
const Puppeteer = require ( 'puppeteer' ) ;
4
4
const { PUPPETEER_REVISIONS } = require ( 'puppeteer/lib/cjs/puppeteer/revisions' )
5
+ const fs = require ( 'fs' )
5
6
6
7
const archArg = process . argv [ 2 ] ;
7
8
let [
@@ -39,7 +40,8 @@ browserFetcher
39
40
40
41
if ( platform === 'mac' && arch === 'arm64' ) {
41
42
// 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 } ` )
43
45
} else {
44
46
// follow symlinks, copy them as symlinks
45
47
child_process . execSync ( `cp -RP ${ execPath } ${ outputPath } ` ) ;
You can’t perform that action at this time.
0 commit comments