Is macdeployqt a shell script?
-
Shell scripts are plain text. Just open the file in a text editor and see if it's a shell script or not.
-
Did that already...opened with TextEdit on Mac. It has no extension but says it's a unix executable in finder. Garbled content except for the text strings. But it does not look like an executable..more like encrypted script.
The reason I ask is that if it is using or "shelling" other utilities like "otool" then will it run into permission issues like Automator running a shell script?
I'm seeing odd results from macdeployqt..specifically that when doing an "otool -L MyApp.app" prior to running it, the output does not change after running macdeployqt. None of the framework paths are changed..they all remain as
@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets (compatibility version 5.0.0, current version 5.255.3) @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.8.0, current version 5.8.0) @rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.8.0, current version 5.8.0) @rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.8.0, current version 5.8.0) @rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.8.0, current version 5.8.0) @rpath/QtWebKit.framework/Versions/5.602.3/QtWebKit (compatibility version 5.0.0, current version 5.255.3) @rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0) @rpath/QtXml.framework/Versions/5/QtXml (compatibility version 5.8.0, current version 5.8.0)
Aren't they supposed to be changed to something like..
@executable/../../QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets (compatibility version 5.0.0, current version 5.255.3) @executable/../../QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.8.0, current version 5.8.0) @executable/../../QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.8.0, current version 5.8.0) @executable/../../QtGui.framework/Versions/5/QtGui (compatibility version 5.8.0, current version 5.8.0) @executable/../../QtCore.framework/Versions/5/QtCore (compatibility version 5.8.0, current version 5.8.0) @executable/../../QtWebKit.framework/Versions/5.602.3/QtWebKit (compatibility version 5.0.0, current version 5.255.3) @executable/../../QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0) @executable/../../QtXml.framework/Versions/5/QtXml (compatibility version 5.8.0, current version 5.8.0)
-
Hi,
macdeployqt
is a command line tool not a shell script.No they are not if the rpath contains the correct search list.
Run
otool -l
(lowercase L) on your application executable and search for theLC_RPATH
entries. -
Here is the source code: http://code.qt.io/cgit/qt/qttools.git/tree/src/macdeployqt
-
Yes, good to go.