fix(iOS): extracting debs

This commit is contained in:
zx
2024-09-07 17:47:18 -04:00
parent 74b742d621
commit dd67c511b4
2 changed files with 5 additions and 2 deletions

View File

@@ -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}"]