Link release notes to CHANGELOG.md instead of tagged version

This commit is contained in:
confused-Techie 2023-09-03 15:47:33 -07:00
parent f7dd7b010a
commit edc9558acf

View File

@ -14,13 +14,11 @@ let UpdateManager = class UpdateManager {
return 'https://pulsar-edit.dev/download.html';
}
if (!appVersion.startsWith('v')) {
appVersion = `v${appVersion}`;
if (appVersion.startsWith('v')) {
appVersion = appVersion.replace("v", "");
}
const releaseRepo =
appVersion.indexOf('nightly') > -1 ? 'pulsar-nightly-releases' : 'pulsar';
return `https://github.com/pulsar-edit/${releaseRepo}/releases/tag/${appVersion}`;
return `https://github.com/pulsar-edit/pulsar/blob/master/CHANGELOG.md#${appVersion.replace(".", "")}`;
}
};