chore: add lipo

This commit is contained in:
zx committed 2024-09-06 16:18:21 -04:00
1 parent 87dc6a3ae8
commit 8ee7a00f2c
9 files changed
+6 -2

No files matched your search

+6 -2
View File
@@ -15,8 +15,11 @@ class Plist:
def __getitem__(self, key: str) -> Any:
return self.data.get(key, None)
def __setitem__(self, key: str, val: Any) -> None:
self.data[key] = val
def save(self) -> None:
with open(self.path, "w") as f:
with open(self.path, "wb") as f:
plistlib.dump(self.data, f)
def remove(self, key: str) -> bool:
@@ -32,7 +35,8 @@ class Plist:
return False
except KeyError:
self[key] = val
return True
return True
def remove_uisd(self) -> None:
if self.remove("UISupportedDevices"):
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.