1. 准备
- 下载nwjs
- 下载packages 地址:http://s.sudre.free.fr/Software/Packages/resources.html
2. 编译Vue项目生成dist文件
3. 用nwjs打包可执行文件(.app)
{
"name": "硬汉邦医生端",
"main": "index.html",
"icon": "icon.png",
"version": "0.1.0",
"keywords": ["硬汉邦医生端", "PC"],
"window": {
"title": "硬汉邦医生端",
"icon": "icon.png",
"toolbar": false,
"frame": true,
"width": 1090,
"height": 750,
"position": "center",
"min_width": 1090,
"min_height": 750,
"max_width": 1920,
"max_height": 1080,
"resizable": true
},
"webkit": {
"plugin": true
},
"dependencies": {
"nw-notify": "0.2.3",
"sqlite3": "3.1.1"
}
}
打包MAC系统安装包(.pkg)
[请前往] https://blog.csdn.net/lovechris00/article/details/84546751#comments