lucacasonato / deno-puppeteer

A port of puppeteer running on Deno
https://deno.land/x/puppeteer
MIT License
454 stars 44 forks source link

Download ARM Chromium builds on M1 Mac #48

Open mjarkk opened 2 years ago

mjarkk commented 2 years ago

On a M1 Mac the install script currently downloads a Intel (x86_64) build of chromium while there are arm builds available nowadays.

It would be nice if the install script downloaded the ARM version when using an M1 Mac.

char8x commented 2 years ago

Update: forget it, I search the BrowserFetcher.ts,it is old or has been modified, the variable PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM does not exist


@mjarkk I found this PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM env variable in the v14 doc

image

Try this see if it helps

PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM=true PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@14.1.1/install.ts