mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-11 02:49:40 +00:00
WHY IS THIS SO FUCKING STUPID
This commit is contained in:
@@ -95,10 +95,12 @@ class Executable:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# `extract_deb()` will modify `tweaks`, which is why we make a copy
|
# `extract_deb()` will modify `tweaks`, which is why we make a copy
|
||||||
|
cwd = os.getcwd()
|
||||||
for bn, path in dict(tweaks).items():
|
for bn, path in dict(tweaks).items():
|
||||||
if bn.endswith(".deb"):
|
if bn.endswith(".deb"):
|
||||||
tbhutils.extract_deb(path, tweaks, tmpdir)
|
tbhutils.extract_deb(path, tweaks, tmpdir)
|
||||||
continue
|
continue
|
||||||
|
os.chdir(cwd) # i fucking hate jailbroken iOS utils.
|
||||||
|
|
||||||
needed: set[str] = set()
|
needed: set[str] = set()
|
||||||
for bn, path in tweaks.items():
|
for bn, path in tweaks.items():
|
||||||
|
|||||||
@@ -121,11 +121,11 @@ def extract_deb(deb: str, tweaks: dict[str, str], tmpdir: str) -> None:
|
|||||||
t2 = f"{tmpdir}/{uuid4()}"
|
t2 = f"{tmpdir}/{uuid4()}"
|
||||||
os.mkdir(t2)
|
os.mkdir(t2)
|
||||||
|
|
||||||
if platform.system() == "Linux" or (
|
if platform.system() == "Linux":
|
||||||
"iPhone" in platform.machine()
|
|
||||||
or "iPad" in platform.machine()
|
|
||||||
):
|
|
||||||
tool = ["ar", "-x", deb, f"--output={t2}"]
|
tool = ["ar", "-x", deb, f"--output={t2}"]
|
||||||
|
elif "iPhone" in platform.machine() or "iPad" in platform.machine():
|
||||||
|
os.chdir(t2) # BAHAHAHAHHAHA.
|
||||||
|
tool = ["ar", "-x", deb]
|
||||||
else:
|
else:
|
||||||
tool = ["tar", "-xf", deb, f"--directory={t2}"]
|
tool = ["tar", "-xf", deb, f"--directory={t2}"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user