1
0
Fork 0
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:
Michael Hollister 2024-11-21 12:18:54 -06:00
parent 104398a91d
commit 9e10d1c7ba

View file

@ -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();