mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-11-25 15:39:47 +00:00
fix(iOS): extracting debs
This commit is contained in:
2 files changed
+5
-2
No files matched your search
+4
-1
@@ -121,7 +121,10 @@ def extract_deb(deb: str, tweaks: dict[str, str], tmpdir: str) -> None:
|
||||
t2 = f"{tmpdir}/{uuid4()}"
|
||||
os.mkdir(t2)
|
||||
|
||||
if platform.system() == "Linux":
|
||||
if platform.system() == "Linux" or (
|
||||
"iPhone" in platform.machine()
|
||||
or "iPad" in platform.machine()
|
||||
):
|
||||
tool = ["ar", "-x", deb, f"--output={t2}"]
|
||||
else:
|
||||
tool = ["tar", "-xf", deb, f"--directory={t2}"]
|
||||
|
||||
Reference in new issue
Block a user