Skip to content
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

Fix macOS app packaging and related notes #1153

Merged
merged 6 commits into from
Jan 31, 2021

Conversation

a2k-hanlon
Copy link
Collaborator

@a2k-hanlon a2k-hanlon commented Jan 29, 2021

This PR includes changes to the github action script for the macOS build as well as some of the Printrun documentation pertaining to macOS. It's a follow up to #1117. The changes do the following:

Related to build for macOS:

  • Enables packaged app to render in full resolution on Retina displays
  • Disables app sleep, which may cause stalled prints
    • there was something about it in buildinstructions.txt previously
    • on a previous version of macOS, 10.13 I had to "disable app nap" through finder's "get info" window for the app, thought it might be related to that
  • Writes the git commit hash to the version number displayed for the macOS app in Finder
    • this is helpful for debugging since you can't find the precise version anywhere else in the packaged app
  • Uploads only the application itself, without an extraneous binary produced by pyinstaller, to cut down the download size
  • Fixes Internationalization change broke macOS build #1154 with a workaround suggested by @DivingDuck

Related to documentation:

  • Amends a troubleshooting suggestion in the README to disable spctl to get the app to run. I don't think that's necessary, nor is it a good idea for security reasons.
  • Updates the links to precompiled binaries to the Github Releases page

- Enables full resolution on Retina displays
- Prevents app sleep (stalled prints?)
- Only upload the application, ie. exclude extraneous binary
- Put the git commit hash in the app version metadata
- Replace Mac OS X with macOS
@a2k-hanlon
Copy link
Collaborator Author

Oh, if someone could kindly help work out why the Windows build scripts stopped working, that would be appreciated! They were working in the commit before this PR, and I'm not really sure why they failed here since I don't see what the changes in this PR have to do with them...

Problem was caused by inadvertent fancy quote characters in README
@a2k-hanlon
Copy link
Collaborator Author

Never mind, I fixed it. My text editor substituted fancy quote characters in the README, and that caused problems when the README was read by setup.py.

@a2k-hanlon
Copy link
Collaborator Author

Ok, I think this is ready to go if you have no more comments or concerns @kliment!

@kliment
Copy link
Owner

kliment commented Jan 31, 2021

Good to go in my opinion too. I'll merge it now. Thank you @a2k-hanlon and @DivingDuck

@kliment kliment merged commit 5d83a83 into kliment:master Jan 31, 2021
@a2k-hanlon a2k-hanlon deleted the fix-macos-package branch January 31, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internationalization change broke macOS build
2 participants