I try to use the function _autoUpdater.setFeedURL_ to change updater default url but nothing happen.
autoUpdater.setFeedURL({ "provider": "generic", "url":'http://mywebsite/application/client'});
And when I try to use the function _autoUpdater.getFeedURL_, the function return _Deprecated. Do not use it_.
I too got the same issue...
updater doesn't use new config? Or just getFeedURL doesn't work (and should not)?
From what I see in the source getFeedURL is not meant to work (anymore perhaps?)
getFeedURL(): string | null | undefined {
return "Deprecated. Do not use it."
}
@mrbbm, @Applelo have you solved your problem with setFeedURL?
@develar The updater doesn't use the new config and use instead the config set in package.json. I would like to use getFeedUrl to see if the change was setted.
@jayarjo I didn't solve the problem because I'm not longer part of the project where I needed to use different FeedUrl.
@Applelo you could use checkForUpdates() or getUpdateInfoAndProvider() directly (undocumented for some reason) to see details about current config and more. Both return a Promise though (that's probably a reason for deprecation of getFeedURL, which apparently was sync).
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.
Phiên bản Electron Builder : 20.28.1
Phiên bản cập nhật điện tử : 3.1.1
Mục tiêu : Windows
Tôi cố gắng sử dụng chức năng _autoUpdater.setFeedURL_ để thay đổi url mặc định của trình cập nhật nhưng không có gì xảy ra.
autoUpdater.setFeedURL({ "provider": "generic", "url":'http://mywebsite/application/client'});Và khi tôi cố gắng sử dụng hàm _autoUpdater.getFeedURL_ , hàm trả về _Không được chấp nhận. Không sử dụng nó_ .
why is the documentation not up to date?
Most helpful comment
@Applelo you could use
checkForUpdates()orgetUpdateInfoAndProvider()directly (undocumented for some reason) to see details about current config and more. Both return a Promise though (that's probably a reason for deprecation ofgetFeedURL, which apparently was sync).