简体   繁体   English

Electron autoUpdater 未从私有存储库中获取版本

[英]Electron autoUpdater is not fetching releases from private repository

Electron autoUpdater is working fine with public repository but it could not find latest release from private repository. Electron autoUpdater 在公共存储库中运行良好,但无法从私有存储库中找到最新版本。

I had configured electron-updater also to use the github token:我还配置了 electron-updater 以使用 github 令牌:

autoUpdater.setFeedURL({ provider: 'github', owner: ' ', repo: ' ', token: '*****', private: true, host: 'github.com' }); autoUpdater.setFeedURL({ provider: 'github', owner: ' ', repo: ' ', token: '*****', private: true, host: 'github.com' });

It is throwing following error: Unable to find latest version on GitHub, please ensure a production release exists: HttpError: 404它抛出以下错误:无法在 GitHub 上找到最新版本,请确保存在生产版本:HttpError: 404

Downgrade electron-updater to "4.6.5", and set enviroment variable GH_TOKEN将 electron-updater 降级为“4.6.5”,并设置环境变量 GH_TOKEN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM