Merge pull request #1880 from onionshare/fix-macos-silicon-build

Adds packages in zip_include_packages as well
This commit is contained in:
Micah Lee 2024-02-28 07:54:23 -08:00 committed by GitHub
commit 3438f505e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 90 additions and 69 deletions

View file

@ -167,12 +167,15 @@ def cleanup_build():
"QtWebEngineQuick",
"QtWebEngineQuickDelegatesQml",
]:
shutil.rmtree(
f"{app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
)
print(
f"Deleted: {app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
)
try:
shutil.rmtree(
f"{app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
)
print(
f"Deleted: {app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
)
except FileNotFoundError:
pass
try:
os.remove(f"{app_path}/Contents/MacOS/lib/PySide6/{framework}.abi3.so")
print(f"Deleted: {app_path}/Contents/MacOS/lib/PySide6/{framework}.abi3.so")