Simon Willison: TILs on electron

Atom feed for electron

electron Testing Electron apps with Playwright and GitHub Actions - 2022-07-13

Yesterday I figured out (issue 133) how to use Playwright to run tests against my Electron app, and then execute those tests in CI using GitHub Actions, for my datasett-app repo for my Datasette Desktop macOS application. …

electron Configuring auto-update for an Electron app - 2021-09-13

This is almost really simple. I used electron/update-electron-app for it, the instructions for which are: …

electron Bundling Python inside an Electron app - 2021-09-08

For Datasette Desktop I chose to bundle a full version of Python 3.9 inside my Datasette.app application. I did this in order to support installation of plugins via pip install - you can read more about my reasoning in Datasette Desktop—a macOS desktop application for Datasette. …

electron Signing and notarizing an Electron app for distribution using GitHub Actions - 2021-09-08

I had to figure this out for Datasette Desktop. …

electron Open external links in an Electron app using the system browser - 2021-09-02

For Datasette.app I wanted to ensure that links to external URLs would open in the system browser. …

electron Using the Chrome DevTools console as a REPL for an Electron app - 2021-08-31

I figured out how to use the Chrome DevTools to execute JavaScript interactively inside the Electron main process. I always like having a REPL for exploring APIs, and this means I can explore the Electron and Node.js APIs interactively. …