gluon-framework / gluon

A new framework for creating desktop apps from websites, using system installed browsers and NodeJS
https://gluonjs.org
MIT License
3.1k stars 76 forks source link

add widevine installation #35

Closed yellowsink closed 1 year ago

yellowsink commented 1 year ago

This PR adds Widevine installation to Chromium environments in Gluon.

It will install it if needed for any Chromium browser window.

If opted out with {widevine: false}, it will not.

It also exports await Gluon.ensureWidevine({forceBrowser, forceEngine}), to explicitly install it.

Tested platforms:

Also note: if the default should be changed to false, index.js:190:86

CanadaHonk commented 1 year ago

After discussion, it was agreed this would be better served as a separate "plugin"/dependency rather than in the core of Gluon.