summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-10-19 19:56:13 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2023-11-15 15:24:17 +0000
commitcfd8987210f2da44b6f3753431faa734d42c65ed (patch)
tree6a1d12c74818f4ec0d536a972ac02003597ab673
parent2931340457290a6b632cde38e8ec3479e2e7fcea (diff)
cerbero: Add Windows 11 to the supported versions list
Older Python reports Windows 11 as '10', but newer Python (at least 3.12) reports it as '11'. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
-rw-r--r--cerbero/enums.py1
-rw-r--r--cerbero/utils/__init__.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/cerbero/enums.py b/cerbero/enums.py
index a5572005..39c6c69f 100644
--- a/cerbero/enums.py
+++ b/cerbero/enums.py
@@ -136,6 +136,7 @@ class DistroVersion:
WINDOWS_8 = 'windows_08'
WINDOWS_8_1 = 'windows_08_1'
WINDOWS_10 = 'windows_10'
+ WINDOWS_11 = 'windows_11'
OS_X_MAVERICKS = 'osx_mavericks'
OS_X_MOUNTAIN_LION = 'osx_mountain_lion'
OS_X_YOSEMITE = 'osx_yosemite'
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index 4768dcdd..ebf92c58 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -387,7 +387,8 @@ Terminating.''', file=sys.stderr)
'8': DistroVersion.WINDOWS_8,
'post2012Server': DistroVersion.WINDOWS_8_1,
'8.1': DistroVersion.WINDOWS_8_1,
- '10': DistroVersion.WINDOWS_10}
+ '10': DistroVersion.WINDOWS_10,
+ '11': DistroVersion.WINDOWS_11}
if win32_ver in dmap:
distro_version = dmap[win32_ver]
else: