revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

feat(environment): macOS version #1030

Closed zbaylin closed 3 years ago

zbaylin commented 3 years ago

This restructures the Revery_Native.Environment.getOS function and the os type to include the operating system version on macOS. The main change is that the Mac variant now contains three constructors: Mac(major, minor, bugfix)

I plan on extending this to other OS's as well (i.e. Linux could contain the kernel version (same format: major, minor, bugfix), Windows could use RtlGetVersion, etc.)

This is immediately to fix the problem with differing design constraints on different macOS versions in onivim/oni2#2876