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

View File

@@ -8,7 +8,7 @@ setup(
author_email="hi@zxcvbn.fyi",
packages=["cyan", "cyan.tbhtypes"],
# install_requires=["lief"],
python_requires=">=3.10",
python_requires=">=3.9",
include_package_data=True,
entry_points={
"console_scripts": ["cyan=cyan.__main__:main"],