fix(app): use macos marketing version (#39)
This commit is contained in:
parent
8294821a96
commit
ddc9caff6a
@ -32,6 +32,7 @@ export interface DesktopInfo {
|
||||
runningUnderRosetta: boolean;
|
||||
os: NodeJS.Platform;
|
||||
osVersion: string;
|
||||
systemVersion?: string;
|
||||
}
|
||||
|
||||
export type UpdaterContext = 'user' | 'background' | 'focus';
|
||||
|
||||
@ -412,6 +412,7 @@ export function registerIpcHandlers(): void {
|
||||
runningUnderRosetta: detectRosettaMode(),
|
||||
os: process.platform,
|
||||
osVersion: os.release(),
|
||||
systemVersion: process.getSystemVersion(),
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user