fix(updater): dispatch setFeedURL by provider instead of raw url

This commit is contained in:
2026-06-08 07:11:28 +05:30
parent aeadde5f40
commit 6df1389cc8
4 changed files with 36 additions and 11 deletions
+8 -1
View File
@@ -28,4 +28,11 @@ function resolveFeedUrl(channel, version, platform) {
return feedForChannel(channel, version, platform);
}
module.exports = { resolveFeedUrl, FEEDS };
function feedConfigFor(channel) {
if (channel === 'github') {
return { provider: 'github', owner: 'amitwh', repo: 'markdown-converter' };
}
return { provider: 'generic', url: 'https://updates.concreteinfo.co.in/v5' };
}
module.exports = { resolveFeedUrl, feedConfigFor, FEEDS };