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

Remove assumptions about Qt installation for Mac #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

j-ulrich
Copy link

@j-ulrich j-ulrich commented Jun 5, 2019

The build-mac.sh script has some assumptions about where and how Qt is installed.

This PR removes those assumptions in favor of letting the user hand over the Qt installation path via a command line parameter or environment variable QTDIR.
This also solves the issue that an older Qt version could be used in case multiple versions are installed (sorting is broken if you have, for example, 5.9.6 and 5.12.3 installed).

Additionally, the Qt version is now determined by calling qmake --version instead of assuming that the Qt version is part of the installation path.

And I also had the issue that the hidden folders in the DMG were visible.
So this PR also removes the directories .DS_store and .fseventsd in the DMG if they exist and moves the .background directory out of sight.

- Instead of assuming how Qt is installed, let the user hand over the path via command line parameter or environment variable QTDIR.
- Get Qt version from "qmake --version".
- Fixes selection of incorrect Qt in case multiple Qt versions are installed (e.g. 5.9 and 5.12)
- Removes .DS_store and .fseventsd in case they are there
- Moves .background out of sight
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.

1 participant