Projects using react, react-router, mobx, antd, electron using typescript. modified based on https://github.com/electron-react-boilerplate/electron-react-boilerplate.git
First, clone the repo via git:
git clone master hhttps://github.com/lixinxiaobai/electron-ts-admin.git your-project-name
And then install the dependencies with yarn.
$ cd your-project-name
$ yarn
Start the app in the dev
environment.
$ yarn dev
If you don't need autofocus when your files was changed, then run dev
with env START_MINIMIZED=true
:
$ START_MINIMIZED=true yarn dev
To package apps for the local platform:
$ yarn package
To package apps for all platforms:
$ yarn package-all
To package apps with options:
$ yarn package --[option]