fix(app): use macos marketing version (#39)

This commit is contained in:
hampus-fluxer 2026-01-06 02:02:14 +01:00 committed by GitHub
parent 8294821a96
commit ddc9caff6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ export interface DesktopInfo {
runningUnderRosetta: boolean;
os: NodeJS.Platform;
osVersion: string;
systemVersion?: string;
}
export type UpdaterContext = 'user' | 'background' | 'focus';

View File

@ -412,6 +412,7 @@ export function registerIpcHandlers(): void {
runningUnderRosetta: detectRosettaMode(),
os: process.platform,
osVersion: os.release(),
systemVersion: process.getSystemVersion(),
}),
);

View File

@ -290,9 +290,11 @@ async function getOsContext(): Promise<Partial<ClientInfo>> {
default:
osName = desktopInfo.os;
}
const osVersion = normalize(desktopInfo.systemVersion ?? desktopInfo.osVersion);
return {
osName,
osVersion: normalize(desktopInfo.osVersion),
osVersion,
arch: normalizeArchitectureValue(desktopInfo.arch),
};
} catch (error) {