快速打包Electron程序

快速打包Electron程序

修改package.json

{
  "name": "这里必须是英文",
  "version": "1.0.0",
  "description": "描述 必须是英文",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "build": "electron-packager . demo --win --out ./build --platform=win32 --arch=x64 --overwrite --ignore=node_module --icon=./favicon.ico",
    "dist": "electron-builder",
    "dist-win": "electron-builder --win --ia32"
  },
  "repository": "https://github.com/electron/electron-quick-start",
  "keywords": [
    "Electron",
    "quick",
    "start",
    "tutorial",
    "demo"
  ],
  "author": "CC",
  "license": "CC",
  "devDependencies": {
    "electron": "^7.0.0",
    "electron-packager": "^14.0.6"
  },
  "build": {
    "appId": "123",
    "publish": [
      {
        "provider": "generic",
        "url": "CC"
      }
    ],
    "win": {
      "target": "nsis",
      "icon": "res/favicon.ico"
    }
  }
}



版权声明:本文为原创文章,版权归 CC 所有。

本文链接:https://wzmoe.com/index.php/archives/16/

所有原创文章采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。
Last modification:November 10th, 2019 at 08:03 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment