electron - 错误:错误:不支持的提供者:电子 js 中未定义
问题描述
我已经开发了一个带角度的电子 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 但抛出了上面的错误
解决方案
推荐阅读
- r - 问题:在 R 中,线框错误;里面什么都没有的空盒子
- matlab - matlab中的拉格朗日插值扰动
- c++ - 如何插入`std::map
*我的地图`? - excel - 搜索第二个水平轴时忽略“On Error GoTo”
- jquery - 如何通过使用 jquery 将鼠标悬停在另一个 html 元素上来更改另一个 html 元素的可见性/不透明度?
- async-await - 异步/等待不起作用(javascript/DynamoDB)
- c# - 如何在 C# 中合并两个 Word 文档对象(不在文件系统级别)?
- c - 在 C 中处理 send e recv 错误
- c++ - 变量在循环中没有按预期变化
- javascript - 使用 ytdl-core 打印 YouTube 视频的标题顺序错误