rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.68k stars 119 forks source link

Improve Mac ARM (Apple Silicon) support #436

Closed thibaudgg closed 6 months ago

thibaudgg commented 6 months ago

This patch aims to close the issue #421 by doing the following:

  1. Only include the --disable-gpu flag when running on Windows as it is not needed on other platforms and it causes issues on Mac ARM.
  2. Adding the --use-angle=metal flag when running on Mac ARM so the browser uses the Metal API instead of OpenGL.

Close #421