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
|
||||
cwd = os.getcwd()
|
||||
for bn, path in dict(tweaks).items():
|
||||
if bn.endswith(".deb"):
|
||||
tbhutils.extract_deb(path, tweaks, tmpdir)
|
||||
continue
|
||||
os.chdir(cwd) # i fucking hate jailbroken iOS utils.
|
||||
|
||||
needed: set[str] = set()
|
||||
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()}"
|
||||
os.mkdir(t2)
|
||||
|
||||
if platform.system() == "Linux" or (
|
||||
"iPhone" in platform.machine()
|
||||
or "iPad" in platform.machine()
|
||||
):
|
||||
if platform.system() == "Linux":
|
||||
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:
|
||||
tool = ["tar", "-xf", deb, f"--directory={t2}"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user