From a01e90c47f3d3525e76ab0f76bf56affac0ebd99 Mon Sep 17 00:00:00 2001 From: Aditya Hebballe <45328110+AdityaHebballe@users.noreply.github.com> Date: Sat, 8 Aug 2026 22:23:04 +0530 Subject: [PATCH] feat(platform): support GNOME Shell 51 --- README.md | 4 ++-- src/metadata.json | 2 +- src/shared/constants/platform.js | 1 + tests/platform-and-utils.test.mjs | 8 +++++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e9a963..06d535d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A GNOME extension that adds configurable MPRIS media controls to the top bar. [![Platform](https://img.shields.io/badge/linux-platform?style=for-the-badge&logo=linux&logoColor=white&label=platform&labelColor=21262D&color=6E7681)](https://www.kernel.org) -[![GNOME](https://img.shields.io/badge/47%E2%80%9350-versions?style=for-the-badge&logo=gnome&logoColor=white&label=GNOME&labelColor=21262D&color=3584E4)](https://www.gnome.org) +[![GNOME](https://img.shields.io/badge/47%E2%80%9351-versions?style=for-the-badge&logo=gnome&logoColor=white&label=GNOME&labelColor=21262D&color=3584E4)](https://www.gnome.org) [![Release](https://img.shields.io/github/v/release/WSTxda/MediaShell?display_name=release&style=for-the-badge&logo=github&labelColor=21262D&color=1F6FEB)](https://github.com/WSTxda/MediaShell/releases/latest) [![Downloads](https://img.shields.io/github/downloads/WSTxda/MediaShell/total?style=for-the-badge&labelColor=21262d&color=238636)](https://github.com/WSTxda/MediaShell/releases) @@ -91,7 +91,7 @@ MediaShell is a GNOME extension that adds media controls to your top bar. Click ## Requirements -- **GNOME** 47–50 +- **GNOME** 47–51 - An **MPRIS** compatible media app or browser playback source like Spotify, VLC, Firefox, Vinyl, etc. > [!IMPORTANT] diff --git a/src/metadata.json b/src/metadata.json index 0a93af0..cec800b 100644 --- a/src/metadata.json +++ b/src/metadata.json @@ -6,7 +6,7 @@ "settings-schema": "org.gnome.shell.extensions.mediashell", "gettext-domain": "mediashell@wstxda.github.com", "version-name": "2.0.0", - "shell-version": ["47", "48", "49", "50"], + "shell-version": ["47", "48", "49", "50", "51"], "donations": { "buymeacoffee": "wstxda" } diff --git a/src/shared/constants/platform.js b/src/shared/constants/platform.js index fdbf1f8..17a1a54 100644 --- a/src/shared/constants/platform.js +++ b/src/shared/constants/platform.js @@ -15,6 +15,7 @@ export const SUPPORTED_GNOME_SHELL_VERSIONS = Object.freeze([ "48", "49", "50", + "51", ]); /** Minimum Libadwaita version required by preferences widgets. */ diff --git a/tests/platform-and-utils.test.mjs b/tests/platform-and-utils.test.mjs index a3f1015..49ca55a 100644 --- a/tests/platform-and-utils.test.mjs +++ b/tests/platform-and-utils.test.mjs @@ -45,7 +45,13 @@ import { import { VisualizerStyles } from "../src/shared/enums/visualizer.js"; test("platform policy is the exact supported baseline", () => { - assert.deepEqual(SUPPORTED_GNOME_SHELL_VERSIONS, ["47", "48", "49", "50"]); + assert.deepEqual(SUPPORTED_GNOME_SHELL_VERSIONS, [ + "47", + "48", + "49", + "50", + "51", + ]); assert.deepEqual(MINIMUM_LIBADWAITA_VERSION, { major: 1, minor: 6 }); assert.equal(isVersionAtLeast(1, 5), false); assert.equal(isVersionAtLeast(1, 6), true);