Prepare
- node.js >= 14.16.0(node.js installation tutorial)
Download
# gitee
git clone https://gitee.com/wallace5303/electron-egg.git
# github
git clone https://github.com/wallace5303/electron-egg.git
Installation
# cd ./electron-egg/
npm install
# build sqlite
# - requires python3
# - requires node-gyp
npm i node-gyp -g
npm run re-sqlite
Notes:FAQ
Commands
# Developer mode
# 1:【enter the front-end directory】,start the front-end service
cd electron-egg/frontend && npm install && npm run serve
# 2:【project directory】,start the backend-end service
npm run dev
# dev (main process)
npm run dev
# dev (hot reload)
npm run reload
# pre release mode(env:prod)
npm run start
# build windows app
npm run build-w (32 bit)
npm run build-w-64 (64 bit)
# build mac app
npm run build-m
npm run build-m-arm64 (m1)
# build linux app
npm run build-l
# move front-end static resources
npm run rd
# bytecode encryption
npm run encrypt