Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Check out ${{ github.sha }} from repository ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -70,15 +70,14 @@ jobs:
- name: Upload code coverage to CodeCov
uses: codecov/codecov-action@v5.5.1
continue-on-error: true
- name: Analyze with SonarCloud
uses: SonarSource/sonarcloud-github-action@v5.0.0
- name: Analyze with SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v8.2.1
with:
args: >
-Dsonar.organization=emilsvennesson
-Dsonar.projectKey=emilsvennesson_script.module.inputstreamhelper
-Dsonar.sources=lib/
-Dsonar.tests=tests/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
continue-on-error: true
11 changes: 6 additions & 5 deletions lib/inputstreamhelper/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
# To keep the Chrome OS ARM(64) hardware ID list up to date, the following resources can be used:
# https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices
# https://chromiumdash.appspot.com/serving-builds?deviceCategory=Chrome%20OS
# Last updated: 2026-01-29
# current Chrome OS version: 16463.79.0, Widevine version: 4.10.2662.3
# Last updated: 2026-08-24
# current Chrome OS version: 16733.54.0, Widevine version: 4.10.2662.3
CHROMEOS_RECOVERY_ARM_BNAMES = [
'bob', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_bob_recovery_stable-channel_mp-v2.bin.zip
'kevin', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_kevin_recovery_stable-channel_mp-v2.bin.zip
'scarlet', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_scarlet_recovery_stable-channel_mp-v8.bin.zip
'bob', # no longer updated, still 4.10.2662.3 wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_bob_recovery_stable-channel_mp-v2.bin.zip
'kevin', # no longer updated, still 4.10.2662.3 wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_kevin_recovery_stable-channel_mp-v2.bin.zip
'scarlet', # no longer updated, still 4.10.2662.3 wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_scarlet_recovery_stable-channel_mp-v8.bin.zip
]

CHROMEOS_RECOVERY_ARM64_BNAMES = [
Expand All @@ -98,6 +98,7 @@
'geralt',
'hana',
'jacuzzi',
'jedi',
'kukui',
'rauru',
'skywalker',
Expand Down
15 changes: 15 additions & 0 deletions tests/test_ishelper_linux_arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,27 @@ def setUp(self):
inputstreamhelper.widevine.widevine.system_os = lambda: 'Linux'
inputstreamhelper.widevine.repo.system_os = lambda: 'Linux'

def test_check_inputstream_mpd(self):
platform.machine = lambda: 'arm64'

inputstreamhelper.userspace64 = lambda: True
inputstreamhelper.widevine.arm.userspace64 = lambda: True

is_helper = inputstreamhelper.Helper('mpd', drm='com.widevine.alpha')
is_helper.remove_widevine()
is_installed = is_helper.check_inputstream()
self.assertTrue(is_installed, True)

def test_check_inputstream_mpd_chromeos(self):
platform.machine = lambda: 'arm64'

inputstreamhelper.userspace64 = lambda: True
inputstreamhelper.widevine.arm.userspace64 = lambda: True

inputstreamhelper.cdm_from_repo = lambda: False
inputstreamhelper.widevine.widevine.cdm_from_repo = lambda: False
inputstreamhelper.widevine.repo.cdm_from_repo = lambda: False

is_helper = inputstreamhelper.Helper('mpd', drm='com.widevine.alpha')
is_helper.remove_widevine()
is_installed = is_helper.check_inputstream()
Expand Down
Loading