docs: mention thinning

This commit is contained in:
zx committed 2024-09-06 17:00:48 -04:00
1 parent 17da3e897c
commit cd43295d69
2 files changed
+5 -7

No files matched your search

+1
View File
@@ -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
+4 -7
View File
@@ -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])