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