-
Notifications
You must be signed in to change notification settings - Fork 77
Build: Build and sign application budle for macOS #4308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 11 changed files in this pull request and generated 2 comments.
Files not reviewed (6)
- package/windows/codesign.sh: Language not supported
- package/windows/create-dmg.sh: Language not supported
- package/windows/entitlements.plist: Language not supported
- package/windows/notarize.sh: Language not supported
- requirements-dev.txt: Language not supported
- tools/svg2icns.sh: Language not supported
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work, that sounds promissing!
We'll have to do 2 different bundles for arm and x86, does this works for both?
Are the files package/desktop/silx.icns
and package/windows/DS_Store
needed?
Let's rename package/windows
. Suggestion: package/pyinstaller
?
@@ -0,0 +1,90 @@ | |||
# Script to convert SVG files to macOS .icns format. | |||
# Adapted from https://github.com/magnusviri/svg2icns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you copy the copyright + license from the initial script here for reference?
from silx import strictversion | ||
|
||
base_name = os.path.join(SPECPATH, "artifacts", f"silx-{strictversion}-windows-application") | ||
# Create a zip archive of the fat binary files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keeping the innosetup
and make_zip
helper functions instead of replacing them with a comment?
if sys.platform == "darwin": | ||
icon = "silx.icns" | ||
elif sys.platform == "win32": | ||
icon = "silx.ico" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
icon = "silx.ico" | |
icon = "silx.ico" | |
else: | |
raise RuntimeError("Unsupported platform") |
The PR updates the PyInstaller build scripts to build an application bundle for macOS. It also submits the application for notarization with Apple.