Improve Windows detection & recognize Windows CE & RT as separate OS variants

This commit is contained in:
Faisal Salman
2025-06-21 13:31:52 +07:00
parent f9836f1981
commit a9378427ed
8 changed files with 365 additions and 57 deletions

View File

@@ -373,9 +373,11 @@ export const OS: Readonly<{
WATCHOS: "watchOS";
WEBOS: "WebOS";
WINDOWS: "Windows";
WINDOWS_CE: "Windows CE";
WINDOWS_IOT: "Windows IoT";
WINDOWS_MOBILE: "Windows Mobile";
WINDOWS_PHONE: "Windows Phone";
WINDOWS_RT: "Windows RT";
XBOX: "Xbox";
XUBUNTU: "Xubuntu";
ZENWALK: "Zenwalk";

View File

@@ -388,9 +388,11 @@ const OS = Object.freeze({
WATCHOS: 'watchOS',
WEBOS: 'WebOS',
WINDOWS: 'Windows',
WINDOWS_CE: 'Windows CE',
WINDOWS_IOT: 'Windows IoT',
WINDOWS_MOBILE: 'Windows Mobile',
WINDOWS_PHONE: 'Windows Phone',
WINDOWS_RT: 'Windows RT',
XBOX: 'Xbox',
XUBUNTU: 'Xubuntu',
ZENWALK: 'Zenwalk'