Skip to content

Commit

Permalink
recreate ds-store
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWierzbicki committed Feb 23, 2022
1 parent 2769944 commit e3fc858
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 @@ -2,6 +2,7 @@ const path = require('path');
const child_process = require('child_process');
const Puppeteer = require('puppeteer');
const { PUPPETEER_REVISIONS } = require('puppeteer/lib/cjs/puppeteer/revisions')
const fs = require('fs')

const archArg = process.argv[2];
let [
Expand Down Expand Up @@ -39,7 +40,8 @@ browserFetcher

if (platform === 'mac' && arch === 'arm64') {
// 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`;
child_process.execSync(`rm ${dsStorePath} && touch ${dsStorePath}`)
} else {
// follow symlinks, copy them as symlinks
child_process.execSync(`cp -RP ${execPath} ${outputPath}`);
Expand Down

0 comments on commit e3fc858

Please sign in to comment.