New project from electronjs-receipt-print.
WTFPL License
本项目的目的是利用Electron构建一个打印票据的应用,目的是得到一个应用,并在应用构建过程中逐步掌握Electron。
sudo npm install electron -g
),也可本地安装(npm install electron --save
)├── config.js
├── copying
├── db
│ ├── 000007.log
│ ├── CURRENT
│ ├── LOCK
│ ├── LOG
│ ├── LOG.old
│ └── MANIFEST-000006
├── git-push.sh
├── installers
│ ├── setupEvents.js
│ └── windows
│ ├── createinstaller-ia32.js
│ └── createinstaller-x64.js
├── lib.js
├── main.js
├── package.json
├── package-lock.json
├── README.md
├── Release.key
├── tree.sh
└── ui
├── about.html
├── app.html
├── css
│ ├── app.css
│ ├── app_dark.css
│ └── print.css
├── img
│ ├── Alipay.jpg
│ ├── Boostrap_logo.svg
│ ├── Electron.svg
│ ├── icon.ico
│ ├── leveldb-logo.svg
│ ├── ngMaterial-logo.svg
│ ├── nodejs-logo.svg
│ └── WeChat-Pay.jpg
├── js
│ ├── about.js
│ ├── app.js
│ ├── print.js
│ └── title.js
├── print.html
└── title.html
npm install -g windows-build-tools
(作为管理员)leveldown
- Google 出品的高速键值对存储方案node-gyp rebuild
, 在package.json
中有对应的 postinstall
脚本,其中无需HOME=~/.electron-gyp
项,亲测成功electron-packager
,在package.json
中有对应的package
脚本electron-builder
, 尚未测试