【问题标题】:publish to github with electron-builder使用 electron-builder 发布到 github
【发布时间】:2020-05-28 07:01:50
【问题描述】:

当我在github 上测试发布时,我收到此错误write ECONNRESET at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16)

这是我的代码

{
  "name": "app",
  "version": "1.0.0",
  "description": "A minimal Electron application",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "dist": "electron-builder",
    "publish": "electron-builder --publish always"
  },
  "author": "GitHub",
  "license": "CC0-1.0",
  "devDependencies": {
    "electron": "^8.0.0",
    "electron-builder": "^22.3.2"
  },
  "repository": {
    "type" : "git",
    "url" : "https://github.com/Fizo55/app.git"
  },
  "build": {
    "appId": "com.fizo55.app",
    "productName": "app",
    "target": "NSIS",
    "directories": {
      "output": "build"
    },
    "publish": [
      {
        "provider": "github",
        "private": true,
        "owner": "Fizo55",
        "repo": "app",
        "token": "mytoken"
      }
    ],
    "nsis": {
      "allowToChangeInstallationDirectory": true,
      "oneClick": false
    }
  }
}

感谢您的帮助

【问题讨论】:

    标签: electron electron-builder


    【解决方案1】:

    经过一些测试,是我的连接问题,我打开了我的 4G,现在它可以正常工作了。

    【讨论】:

      猜你喜欢
      • 2019-09-01
      • 2019-12-14
      • 2018-03-16
      • 2021-10-03
      • 2016-07-23
      • 2015-05-14
      • 2020-04-16
      • 2020-10-11
      • 2019-02-20
      相关资源
      最近更新 更多