Skip to content

Latest commit

 

History

History
74 lines (72 loc) · 2.28 KB

build-note.md

File metadata and controls

74 lines (72 loc) · 2.28 KB

{ "build": { "productName":"xxxx",//项目名 这也是生成的exe文件的前缀名 "appId": "com.leon.xxxxx",//包名
"copyright":"xxxx",//版权 信息 "directories": { // 输出文件夹 "output": "build", "app" : //应用程序目录(包含应用程序的package.json),默认为app,www或工作目录。 }, "nsis": { "oneClick": false, // 是否一键安装 "allowElevation": true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。 "allowToChangeInstallationDirectory": true, // 允许修改安装目录 "installerIcon": "./build/icons/aaa.ico",// 安装图标 "uninstallerIcon": "./build/icons/bbb.ico",//卸载图标 "installerHeaderIcon": "./build/icons/aaa.ico", // 安装时头部图标 "createDesktopShortcut": true, // 创建桌面图标 "createStartMenuShortcut": true,// 创建开始菜单图标 "shortcutName": "xxxx", // 图标名称 "include": "build/script/installer.nsh", // 包含的自定义nsis脚本 }, "publish": [ { "provider": "generic", // 服务器提供商 也可以是GitHub等等 "url": "http://xxxxx/" // 服务器地址 } ], "files": [ "dist/electron/**/*" //工作目录,必须包含main.js ], "dmg": { "contents": [ { "x": 410, "y": 150, "type": "link", "path": "/Applications" }, { "x": 130, "y": 150, "type": "file" } ] }, "mac": { "icon": "build/icons/icon.icns" }, "win": { "icon": "build/icons/aims.ico", "target": [ { "target": "nsis", //就是自动安装包 "arch": [ "x64", "ia32" ] }, { "target": "zip", "arch": [ "x64", "ia32" ] } ]

    },
    "linux": {
      "icon": "build/icons"
    }
  }

}