1

我已经开发了一个带角度的电子 js 应用程序。我想要电子更新器。但它给了我上面的错误。这是我的 package.json

{
  "name": "Gamer",
  "version": "1.0.1",
  "main": "main.js", 
  "dependencies": { ...},
  "devDependencies": { 
   "electron-builder": "^22.1.0",
    "electron-prebuilt": "^1.4.13",
    "electron-updater": "^4.2.0",
     "typescript": "~3.2.2"
  },
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "start:electron": "ng build --base-href ./ && electron .",
    "build": "ng build",   
    "electron": "electron .",
    "electron-build": "ng build --prod && electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder -mwl",
    "release": "build"
  },
  "author": "",
  "license": "ISC",
  "build": {
    "appId": "com.electron.Gamer",
    "files": [
      "*.js",
      "build",
      "dist"
    ],
    "mac": {
      "target": "zip"
    },
    "linux": {
      "target": [
        "AppImage",
        "zip"
      ]
    },
    "win": {
      "target": "squirrel",
      "icon":"src/app/assets/images/app-icon.png"
    }

  }
}

开发更新.yml

appId: com.electron.Gamer
publish:
    provider: github
    token: ab***e
    repo: https://github.com/abc/gamer
    owner: xuz

我不知道我是否遵循正确的步骤。我尝试了 Provider:generic 但抛出了上面的错误

4

0 回答 0