nw.js package一般设置

{

"name": "app name",
"main": "mainpage",                                                                //指定项目主页面
"build": "1445048139741",                                                     //这是为了给更新时判断版本用的
"version": "0.0.1",//当前版本
"homepage": "homepage",
"description": "description",
"window": {
"title": "title",                                                                     //如果 index.html没有title,则会显示这里的值
"icon": "logo.png",
"position": "center",
"width": 1300,
"height": 700,
"toolbar": true,                                                            //是否隐藏窗口的工具条
"frame": true,                                             //是否显示最外层的框架,设为false之后 窗口的最小化、最大化、关闭 就没有了
"resizable": false,
"min_width": 1300
},
"node-main": "node-main.js' position",                   //node-main.js 位置
"contributors": [
{
"name": "your name",
"email": "your email",
"web": "your web"
}
],
"dependencies": { //依赖的包
"MD5": "1.2.1",
"cheerio": "^0.19.0",
"fetch": "^0.3.6",
"node-read": "^0.1.6"
}
}

猜你喜欢

转载自www.cnblogs.com/empist/p/8888435.html
今日推荐