20.38.4
electron: 4.0.1
Update for version 4.0.1 is not available (latest version: 1.1.1901200, downgrade is disallowed).
How to prevent this check for update? My own check url is :
autoUpdater.setFeedURL('https://m.xxx.com/');
autoUpdater.checkForUpdates();
Can you solve the problem? I also encountered this problem.
这个问题应该是electron-updater的bug,解决办法就是:主动设置当前版本
// 设置当前版本,必须主动设置否则,有bug会去取electron的版本,而不是app的版本
autoUpdater.currentVersion = config.version
// 设置更新地址
autoUpdater.setFeedURL(config.autoUpdateURL)
.............
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
autoUpdater.currentVersion = config.version
非常棒!(๑•̀ㅂ•́)و✧
config是从哪里来的?
Most helpful comment
这个问题应该是electron-updater的bug,解决办法就是:主动设置当前版本
// 设置当前版本,必须主动设置否则,有bug会去取electron的版本,而不是app的版本
autoUpdater.currentVersion = config.version
// 设置更新地址
autoUpdater.setFeedURL(config.autoUpdateURL)
.............