![]() ![]() Now delete the staging directory with sudo rm -rf staging. uid root and you can see that the files in staging/abc.app are now all owned by the root user, which is unexpected. Run ls /Applications/abc.app and you can see that the application was not installed in the expected place. Next, install the package by running open app.pkg and following the on-screen GUI: If it treats the files specially just because they have ist files, that is probably a bad thing.) I want it to simply install all those files into the user's /Applications directory. (Clearly, pkgbuild is detecting components inside my staging folder. Pkgbuild: Adding component at abc.app/Contents/Frameworks/amework On my computer, the output looks something like this: pkgbuild: Inferring bundle components from contents of staging "$(brew -prefix qt5)/bin/macdeployqt" "staging/abc.app" Mkdir -p "staging/abc.app/Contents/"Ĭp main "staging/abc.app/Contents/MacOS/"Ĭp "staging/abc.app/Contents/ist" Test.sh: c++ -isystem ~/opt/qt5/lib/amework/Headers \ Make a new directory with these three files: What is going on and how I can fix it? The flat packages seem nice, but I want to guarantee that they always install the application in the right place and I don't want them to be modifying files in the user's home directory. The expected behavior is that the package should always install my application into the /Applications directory, and it should not modify the ownership of any files in my home directory. If it finds the application there, then it actually steals that application, changing the ownership of those files to root, and it fails to install the application in the /Applications folder where I wanted it to be installed. ![]() ![]() ![]() It looks like the Mac OS X installer for these packages searches my home directory for the application I am trying to install. However, I am seeing some very strange behavior when I try to install such a flat package on Mac OS X 10.11. I have learned about pkgbuild, productbuild, and used them to create flat packages with a. I am trying to figure out the best way to distribute a graphical Qt application to users of Mac OS X. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |