Skip to content
Emil Pettersson edited this page Sep 10, 2020 · 6 revisions

Can I bundle the Widevine CDM to avoid downloading it on first start?

Show

While technically possible there are legal issues with providing the Widevine CDM with the application bundle, like Chrome does. We have been explicitly warned not to do this by the Widevine Team since it would open us up to potential litigation, specifically over decoder licensing (since there are decoders included in the CDM). As long as the CDM is dynamically installed by download from Google servers it is covered by the license Google has for the CDM.

How can I VMP-sign my application during development?

Show

To VMP-sign your application during development you can use EVS to sign the distribution installed by npm in node_modules/electron/dist:

python -m castlabs_evs.vmp sign-pkg node_modules/electron/dist

Alternatively, if you have a VMP certificate of your own, you can use the vmp-resign.py script to do the same. In both cases you would need to do this each time you reinstall or update the distribution.

How can I use electron-builder with ECS?

Show

To be able to use electron-builder with ECS you have two options with different pros and cons. Option one is to use the electronDist configuration in your package.json to point to an already downloaded distribution, such as the one installed in node_modules by npm:

"build": {
  "electronDist": "node_modules/electron/dist"
}

Using this option lets electron-builder skip the download step but, as a consequence, only works on the platform that matches your installed distribution. The second option is to use the electronDownload/mirror configuration instead:

"build": {
  "electronDownload": {
    "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
  }
}

This allows electron-builder to automatically select and download the package for the requested platform, which makes it possible to build a package regardless of your native platform.

Clone this wiki locally