Prepare

Download

  1. # gitee
  2. git clone https://gitee.com/wallace5303/electron-egg.git
  3. # github
  4. git clone https://github.com/wallace5303/electron-egg.git

Installation

  1. # cd ./electron-egg/
  2. npm install
  3. # build sqlite
  4. # - requires python3
  5. # - requires node-gyp
  6. npm i node-gyp -g
  7. npm run re-sqlite

Notes:FAQ

Commands

  1. # Developer mode
  2. # 1:【enter the front-end directory】,start the front-end service
  3. cd electron-egg/frontend && npm install && npm run serve
  4. # 2:【project directory】,start the backend-end service
  5. npm run dev
  6. # dev (main process)
  7. npm run dev
  8. # dev (hot reload)
  9. npm run reload
  10. # pre release mode(env:prod)
  11. npm run start
  12. # build windows app
  13. npm run build-w (32 bit)
  14. npm run build-w-64 (64 bit)
  15. # build mac app
  16. npm run build-m
  17. npm run build-m-arm64 (m1)
  18. # build linux app
  19. npm run build-l
  20. # move front-end static resources
  21. npm run rd
  22. # bytecode encryption
  23. npm run encrypt