

They have a channel in the Electron Discord that is active daily. Option 2 - Electron Forge (Electron + Typescript + Webpack)Įlectron Forge had everything we were looking for and might be a simpler boilerplate to get started with versus our next option. For us, it didn't have the Electron support we were looking for.

If you already have a Next.js site that you want to convert to an app, this is a viable solution. The latter started around the same time but is updated often (as recently as September 2022). The former hasn't been updated in 4 years, so we instantly passed on that. They've gotten so popular over the years that there are two packages involving Electron: Electron-Next and Nextron. You should be familiar with Next.js it's a product of Vercel. Option 1 - Electron-Next and Nextron (Electron + Next.js) Our Electron application boilerplate requirements There's a list of boilerplates/CLIs on the Electron site, but below we'll give you the rundown of each and ultimately the one we chose. Luckily for you, we've already surveyed the Electron ecosystem to see how apps are built and what options there were to choose from. It's important to use the right tools before you start building. Finding the perfect Typescript/React boilerplate Today, we want to share with you, how you too can build a cross-platform desktop application quickly. We like to move quickly here, so writing one app in Electron that outputs for all three platforms was a no-brainer.
#Electron app wrapper code#
test.js -r ~/test2.js -r /usr/bin/test3.As you may have seen or heard, we recently released a desktop application named Code Snippets Manager for Linux, Windows, and macOS.

It does not follow imports, just evaluate the text Passing the -r file parameter allows to pass a list of scripts to be injected into the render thread. $ python -m electron_inject -d -t 60 - \\PATH\TO\Local\slack\app-2.5.2\slack.exe $ python -m electron_inject -browser - \PATH\TO\Local\WhatsApp\app-\WhatsApp.exe slack If this gives you an error try launching it with the alternative browser method: $ python -m electron_inject -d -t 60 - \\PATH\TO\Local\WhatsApp\app-\WhatsApp.exe set this to an arbitrary high value to make sure we're patching all future windows.
#Electron app wrapper Patch#
patch all known remote webContent/windows in a timeframe of xx seconds. Inject hotkeys F12:toggle devconsole and F5:reload into closed source apps with devconsole disabled. r RENDER_SCRIPTS, -render-script=RENDER_SCRIPTSĪdd a script to be injected into each window (render Try hard to inject for the time specified [default: b, -browser Launch Devtools in default browser. h, -help show this help message and exitĮnable Hotkeys F12 (Toggle Developer Tools) and F5 For example, this can be pretty handy to enable otherwise unavailable features like the built-in developer console.Įlectron_inject -enable-devtools-hotkeys - /path/to/electron/powered/application You find yourself locked out of closed source electron applications with no easy way to enable developer tools? ↷ electron-inject is here to help 👲Įlectron-inject is an application wrapper that utilizes the remote debug console to inject javascript code into electron based applications.
