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;
|
runningUnderRosetta: boolean;
|
||||||
os: NodeJS.Platform;
|
os: NodeJS.Platform;
|
||||||
osVersion: string;
|
osVersion: string;
|
||||||
|
systemVersion?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdaterContext = 'user' | 'background' | 'focus';
|
export type UpdaterContext = 'user' | 'background' | 'focus';
|
||||||
|
|||||||
@ -412,6 +412,7 @@ export function registerIpcHandlers(): void {
|
|||||||
runningUnderRosetta: detectRosettaMode(),
|
runningUnderRosetta: detectRosettaMode(),
|
||||||
os: process.platform,
|
os: process.platform,
|
||||||
osVersion: os.release(),
|
osVersion: os.release(),
|
||||||
|
systemVersion: process.getSystemVersion(),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -290,9 +290,11 @@ async function getOsContext(): Promise<Partial<ClientInfo>> {
|
|||||||
default:
|
default:
|
||||||
osName = desktopInfo.os;
|
osName = desktopInfo.os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const osVersion = normalize(desktopInfo.systemVersion ?? desktopInfo.osVersion);
|
||||||
return {
|
return {
|
||||||
osName,
|
osName,
|
||||||
osVersion: normalize(desktopInfo.osVersion),
|
osVersion,
|
||||||
arch: normalizeArchitectureValue(desktopInfo.arch),
|
arch: normalizeArchitectureValue(desktopInfo.arch),
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user