mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 15:56:01 +00:00
Pin the Qualcomm runtime r3 build and its mirrored downloads
qualcomm-runtime-r3-4b8c7f84-qa (DroidDeck-Components run 40244231868) was built from this branch's patch series: only the Gamescope binary and its source archive changed; Zink and the WSI layer rebuilt byte-identical to r2. The libhybris bridge and WSI archives now come from that release, mirrored unchanged from wallentx/DroidDeck (same SHA-256 and size; the original URLs stay in mirrored_from). runtime.json now records the patch series the Gamescope was built from, and a test fails when a Gamescope patch changes without a rebuild, so the Qualcomm Gamescope cannot silently fall behind the regular one.
This commit is contained in:
1 parent
4b8c7f8415
commit
409c871a03
3 files changed
+68
-12
No files matched your search
@@ -0,0 +1,26 @@
|
||||
from pathlib import Path
|
||||
import hashlib
|
||||
import json
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
sys.path.insert(0, str(ROOT / "tools/qualcomm"))
|
||||
import build_gamescope # noqa: E402
|
||||
|
||||
|
||||
class QualcommGamescopeSyncTest(unittest.TestCase):
|
||||
def test_the_pinned_qualcomm_gamescope_was_built_from_the_current_patches(self):
|
||||
# The Qualcomm Gamescope carries the regular DroidDeck patches too. When one of them (or a Qualcomm one)
|
||||
# changes, the pinned binary no longer matches this tree.
|
||||
pinned = json.loads((ROOT / "tools/qualcomm/runtime.json").read_text())["gamescope"]["patches"]
|
||||
current = {str(p.relative_to(ROOT)).replace("\\", "/"): hashlib.sha256(p.read_bytes()).hexdigest()
|
||||
for p in build_gamescope.patches()}
|
||||
self.assertEqual(list(current.items()), list(pinned.items()),
|
||||
"The Gamescope patches changed after the Qualcomm Gamescope was built: rebuild it with "
|
||||
"DroidDeck-Components build-qualcomm-runtime.yml, then copy the pins from its "
|
||||
"gamescope-build.json, zink-build.json and wsi-build.json into tools/qualcomm/runtime.json")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user