Skip to content

Boilerplate linking electron with create-react-app, Mobx and Ant.Design

Notifications You must be signed in to change notification settings

roytan883/electron-cra-mobx-antd

Repository files navigation

electron-cra-mobx-antd

Boilerplate linking electron with create-react-app, Mobx and Ant.Design

This Boilerplate has solved the create-react-app "require" and "process" wrong at electron render process: window.require issue

screen

Usage

Run tests:

yarn test

Run in dev mode:

yarn electron-dev

Build:

yarn build

Package:

yarn electron-pack

if electron-pack error: as electron-builder(19.11.1) download bin failed, you can manually download it from:

https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.1.13/nsis-3.0.1.13.7z
https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.0.0/nsis-resources-3.0.0.7z
https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-1.9.0/winCodeSign-1.9.0.7z

decompress them to:

C:\Users\YOUR_USER_NAME\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13
C:\Users\YOUR_USER_NAME\AppData\Local\electron-builder\cache\nsis-resources\nsis-resources-3.0.0
C:\Users\YOUR_USER_NAME\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0

then call 'yarn electron-pack'

About

Boilerplate linking electron with create-react-app, Mobx and Ant.Design

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published