mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 07:49:48 -05:00
Updates cleanup script and release documentation for apple silicon
This commit is contained in:
parent
d6d8298bef
commit
2d22910c99
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -167,12 +167,15 @@ def cleanup_build():
|
|||||||
"QtWebEngineQuick",
|
"QtWebEngineQuick",
|
||||||
"QtWebEngineQuickDelegatesQml",
|
"QtWebEngineQuickDelegatesQml",
|
||||||
]:
|
]:
|
||||||
|
try:
|
||||||
shutil.rmtree(
|
shutil.rmtree(
|
||||||
f"{app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
|
f"{app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
|
||||||
)
|
)
|
||||||
print(
|
print(
|
||||||
f"Deleted: {app_path}/Contents/MacOS/lib/PySide6/Qt/lib/{framework}.framework"
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user