mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
check_session_assets: helpers count in usr/local/bin or the Steam taskset folder only
The merge kept this branch's pattern (any usr/ target), which main's new test rejects: a helper extracted into a subfolder of usr/local/bin must not count. The pattern now takes usr/local/bin under any name, as on main, plus usr/local/libexec/droiddeck-steam for droiddeck-steam-taskset. Every helper in the overlay is still found extracted in SessionFiles.kt.
This commit is contained in:
1 parent
3d0d96786a
commit
d13b9d88f0
1 file changed
+4
-3
@@ -11,9 +11,10 @@ SESSION_FILES = OVERLAY.parents[2] / 'app/src/main/java/com/droiddeck/launcher/s
|
||||
|
||||
|
||||
def check_extraction(overlay, source):
|
||||
# Extracted to its own path, or (like droiddeck-steam-taskset, which PATH puts in front of
|
||||
# Steam's own taskset only for the client) to another path in the runtime.
|
||||
deployed = set(re.findall(r'"(usr/local/bin/droiddeck-[^"]+)"\s+to\s+"usr/[^"]+"', source))
|
||||
# Extracted into usr/local/bin under any name, or (droiddeck-steam-taskset, which PATH puts in
|
||||
# front of Steam's own taskset only for the client) into usr/local/libexec/droiddeck-steam.
|
||||
deployed = set(re.findall(
|
||||
r'"(usr/local/bin/droiddeck-[^"]+)"\s+to\s+"usr/local/(?:bin|libexec/droiddeck-steam)/[^"/]+"', source))
|
||||
return ['not extracted at session start: ' + path.relative_to(overlay).as_posix()
|
||||
for path in sorted((overlay / 'usr/local/bin').glob('droiddeck-*'))
|
||||
if path.relative_to(overlay).as_posix() not in deployed]
|
||||
|
||||
Reference in new issue
Block a user