mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Link release notes to CHANGELOG.md
instead of tagged version
This commit is contained in:
parent
f7dd7b010a
commit
edc9558acf
@ -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(".", "")}`;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user