Skip to content

Instantly share code, notes, and snippets.

View vankasteelj's full-sized avatar

Jean van Kasteel vankasteelj

  • Belgium
View GitHub Profile
@vankasteelj
vankasteelj / portnwjs2electron.md
Created February 4, 2025 22:19
Port a NWJS app to Electron (as of feb.2025)

How to port a NW.JS application to ElectronJS

I was wondering if I could port my application, built with NW.JS 0.94.0 to ElectronJS 34.0.2. I found this workaround, that is quite ugly, but seems to be somewhat fully working.

First, you'll want to follow the ElectronJS Tutorial to build a new app. Mainly adding to devDependencies the electron package. Remove, of course, everything related to NWJS.

In ./package.json :

  "main": "app/main.js",
  "scripts": {