Skip to content

Optimize PyInstaller spec file for macOS #9

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

Closed
paulmueller opened this issue Oct 7, 2020 · 6 comments
Closed

Optimize PyInstaller spec file for macOS #9

paulmueller opened this issue Oct 7, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@paulmueller
Copy link
Member

Not sure what is causing this. Help appreciated.

PyJibePixelation

@paulmueller paulmueller added the bug Something isn't working label Oct 7, 2020
@jlopezalo
Copy link

jlopezalo commented Oct 7, 2020

Hello Paul. I had the same issue in some of my applications. It was solved when I added the following on my spec file when creating the BUNDLE: info_plist = {'NSHighResolutionCapable' : 'True'}

Example:
app = BUNDLE(coll,
name='pyAF3.app',
icon='./src/images/icon.icns',
bundle_identifier = None,
info_plist = {'NSHighResolutionCapable' : 'True'}
)

I don't know if it will help.

@paulmueller paulmueller changed the title Pixelated UI on macOS when installed via dmg/pkg Optimize PyInstaller spec file for macOS Oct 7, 2020
@paulmueller
Copy link
Member Author

paulmueller commented Oct 7, 2020

Thanks @jlopezalo. There are several things I was not aware of. This boils down to adding a .spec file in the current build recipe.

@paulmueller paulmueller added enhancement New feature or request and removed bug Something isn't working labels Oct 7, 2020
@jlopezalo
Copy link

Yeah...I have had many problems with pyinstaller and MacOS. I am currently using the Pyinstaller development version 4.1dev.
Also you may have to modify your code to allow the frozen code to find the locations of the GUI static resources (icon, images), if you decide to add your static files via the spec file.

@paulmueller
Copy link
Member Author

I usually access static files via pgk_resources and pyinstaller copies all of them over, so this should not be a problem, but thanks for the hint.

@jlopezalo
Copy link

Np! Happy to help! :)

@paulmueller
Copy link
Member Author

fixed in 0.8.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants