diff options
author | Boris Prohaska <boris.prohaska@gmail.com> | 2017-11-07 13:45:56 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-11-20 10:32:23 +0200 |
commit | dc76a50c7bc5c2e602edbf1e6df005473030bc1a (patch) | |
tree | 3bb032a8347d6ec1ea4e11ba432a93b99473a095 | |
parent | 18858cc9cc1590d15de12f523bbd98d6c35181e0 (diff) |
Added macOS 10.13 support
-rw-r--r-- | cerbero/enums.py | 3 | ||||
-rw-r--r-- | cerbero/utils/__init__.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cerbero/enums.py b/cerbero/enums.py index 4aeb367a..3790319b 100644 --- a/cerbero/enums.py +++ b/cerbero/enums.py @@ -104,11 +104,12 @@ class DistroVersion: WINDOWS_8 = 'windows_8' WINDOWS_8_1 = 'windows_8_1' WINDOWS_10 = 'windows_10' - OS_X_SIERRA = 'osx_sierra' OS_X_MAVERICKS = 'osx_mavericks' OS_X_MOUNTAIN_LION = 'osx_mountain_lion' OS_X_YOSEMITE = 'osx_yosemite' OS_X_EL_CAPITAN = 'osx_el_capitan' + OS_X_SIERRA = 'osx_sierra' + OS_X_HIGH_SIERRA = 'osx_high_sierra' IOS_8_0 = 'ios_8_0' IOS_8_1 = 'ios_8_1' IOS_8_2 = 'ios_8_2' diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py index 52eea6d4..645c24cd 100644 --- a/cerbero/utils/__init__.py +++ b/cerbero/utils/__init__.py @@ -269,7 +269,9 @@ def system_info(): elif platform == Platform.DARWIN: distro = Distro.OS_X ver = pplatform.mac_ver()[0] - if ver.startswith('10.12'): + if ver.startswith('10.13'): + distro_version = DistroVersion.OS_X_HIGH_SIERRA + elif ver.startswith('10.12'): distro_version = DistroVersion.OS_X_SIERRA elif ver.startswith('10.11'): distro_version = DistroVersion.OS_X_EL_CAPITAN |