Human Packaged as OS-native application using ElectronJS
MIT License
Test app for Human library with ElectronJS and ElectronForge
app/main.js
app/prerender.js
app/index.html
main.js
app/renderer.ts
:human
app/renderer.js
app/index.html
npm run transpile
app/prerender.ts
to app/prerender.js
compatible with ElectronJSnpm run start
npm run package
out/human-electron-<platform-name>
npm run make
out/make
Note: If you want to cross-compile to a platform different than your current platform, you can use electron-forge directly:
node_modules/.bin/electron-forge package --platform [win32|darwin|linux]
Only relevant if running ElectronJS inside WSL2 enviroment
In WSL2 by default ElectronJS will run in Linux context which means it will use XWindows for rendering
To run ElectronJS as native Windows app inside WSL2, install with
npm install --platform=win32 electron
In which case, Chromium will not be able to initialize correctly, so use either flags:
in-process-gpu
:no-sandbox
:webgl
or webgpu