Updates cleanup script and release documentation for apple silicon

This commit is contained in:
Saptak S 2024-02-28 02:08:53 +05:30
parent d6d8298bef
commit 2d22910c99
No known key found for this signature in database
GPG Key ID: 7B7F1772C0C6FCBF
2 changed files with 9 additions and 8 deletions

View File

@ -238,8 +238,6 @@ Make the Apple Silicon app bundle:
```sh ```sh
/Library/Frameworks/Python.framework/Versions/3.11/bin/poetry run python ./setup-freeze.py bdist_mac /Library/Frameworks/Python.framework/Versions/3.11/bin/poetry run python ./setup-freeze.py bdist_mac
rm -rf build/OnionShare.app/Contents/Resources/lib
mv build/exe.macosx-10.9-universal2-3.11/lib build/OnionShare.app/Contents/Resources/
/Library/Frameworks/Python.framework/Versions/3.11/bin/poetry run python ./scripts/build-macos.py cleanup-build /Library/Frameworks/Python.framework/Versions/3.11/bin/poetry run python ./scripts/build-macos.py cleanup-build
``` ```

View File

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