Files
session-desktop/ts/node/latest_desktop_release.ts
yougotwill 528c9bb6f6 feat: getLatestReleaseFromFileServer also returns the current release channel
this allows us to access it on the node side in the auto update
2025-03-24 13:18:27 +11:00

14 lines
363 B
TypeScript

import type { ReleaseChannels } from '../updater/types';
let latestRelease: string | undefined;
let releaseChannel: ReleaseChannels | undefined;
export function setLatestRelease(release: [string, ReleaseChannels]) {
latestRelease = release[0];
releaseChannel = release[1];
}
export function getLatestRelease() {
return [latestRelease, releaseChannel];
}