mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Download stable build when updating to stable from different channel
This commit is contained in:
parent
104398a91d
commit
9e10d1c7ba
1 changed files with 4 additions and 1 deletions
|
@ -362,7 +362,10 @@ export class Updater {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const channel = Updater.localPackageJson.version !== Updater.releasesJson.currentVersion ? 'stable' : Updater.localPackageJson.channel;
|
const newCommit = (Updater.localPackageJson.channel !== 'stable' && Updater.localPackageJson.commit !== Updater.releasesJson.currentCommit);
|
||||||
|
let channel = Updater.localPackageJson.version !== Updater.releasesJson.currentVersion ? 'stable' : Updater.localPackageJson.channel;
|
||||||
|
channel = newCommit ? 'stable' : channel;
|
||||||
|
|
||||||
const fileInfo = Updater.releasesJson.currentReleases[channel][process.platform][process.arch]
|
const fileInfo = Updater.releasesJson.currentReleases[channel][process.platform][process.arch]
|
||||||
const file = fileInfo.url.toString().split('/').pop();
|
const file = fileInfo.url.toString().split('/').pop();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue