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
This restructures the
Revery_Native.Environment.getOS
function and theos
type to include the operating system version on macOS. The main change is that theMac
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