From cd43295d6973feafc9c8aeda3ebf8f4babf2e415 Mon Sep 17 00:00:00 2001 From: zx Date: Fri, 6 Sep 2024 17:00:48 -0400 Subject: [PATCH] docs: mention thinning --- README.md | 1 + cyan/tbhtypes/executable.py | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ded9a23..c3e4204 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ more coming soon! i'm trying to copy pyzule in order to deprecate it in favor of - remove UISupportedDevices - remove watch app - fakesign the output ipa/app +- thin all binaries to arm64, it can LARGELY reduce app size sometimes! ## notes diff --git a/cyan/tbhtypes/executable.py b/cyan/tbhtypes/executable.py index 6f1960f..b014742 100644 --- a/cyan/tbhtypes/executable.py +++ b/cyan/tbhtypes/executable.py @@ -193,13 +193,10 @@ class Executable: return True def thin(self) -> bool: - if subprocess.run( - [self.lipo, "-thin", "arm64", self.path, "-output", self.path], - stderr=subprocess.DEVNULL - ).returncode == 0: - return True - - return False + return subprocess.run( + [self.lipo, "-thin", "arm64", self.path, "-output", self.path], + stderr=subprocess.DEVNULL + ).returncode == 0 def change_dependency(self, old: str, new: str) -> None: subprocess.run([self.nt, "-change", old, new, self.path])