mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-11 02:49:40 +00:00
docs: mention thinning
This commit is contained in:
@@ -16,6 +16,7 @@ more coming soon! i'm trying to copy pyzule in order to deprecate it in favor of
|
|||||||
- remove UISupportedDevices
|
- remove UISupportedDevices
|
||||||
- remove watch app
|
- remove watch app
|
||||||
- fakesign the output ipa/app
|
- fakesign the output ipa/app
|
||||||
|
- thin all binaries to arm64, it can LARGELY reduce app size sometimes!
|
||||||
|
|
||||||
## notes
|
## notes
|
||||||
|
|
||||||
|
|||||||
@@ -193,13 +193,10 @@ class Executable:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def thin(self) -> bool:
|
def thin(self) -> bool:
|
||||||
if subprocess.run(
|
return subprocess.run(
|
||||||
[self.lipo, "-thin", "arm64", self.path, "-output", self.path],
|
[self.lipo, "-thin", "arm64", self.path, "-output", self.path],
|
||||||
stderr=subprocess.DEVNULL
|
stderr=subprocess.DEVNULL
|
||||||
).returncode == 0:
|
).returncode == 0
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
|
||||||
|
|
||||||
def change_dependency(self, old: str, new: str) -> None:
|
def change_dependency(self, old: str, new: str) -> None:
|
||||||
subprocess.run([self.nt, "-change", old, new, self.path])
|
subprocess.run([self.nt, "-change", old, new, self.path])
|
||||||
|
|||||||
Reference in New Issue
Block a user