macdeployqt dmg references with links
Unsolved
QML and Qt Quick
-
I have a qml app in which I have links to local files in the release folder of AppName.app/Contents/Resources/qml folder. Which is a problem if I run the macdeployqt command with -dmg switch.
eg.:
./QtQuick/Shapes: total 48 drwxr-xr-x@ 5 sbela staff 160 Már 18 17:33 . drwxr-xr-x@ 17 sbela staff 544 Már 18 17:33 .. lrwxr-xr-x@ 1 sbela staff 50 Már 18 17:33 libqmlshapesplugin.dylib -> ../../../../PlugIns/quick/libqmlshapesplugin.dylib -rw-r--r--@ 1 sbela staff 16470 Jan 24 07:48 plugins.qmltypes -rw-r--r--@ 1 sbela staff 199 Jan 24 07:21 qmldir
This is a problem when I try to install this app on a machine where these files are not in that directory.
This is how I create the dmg file:
#!/bin/zsh /Users/sbela/Qt/6.8.2/macos/bin/macdeployqt AppName.app -qmldir=/Users/sbela/work/projects/AppName/build/Qt_6_8_2_for_macOS-Release/qml -dmg
It solves my problem if I manually copy every single dylib in the correct folder.
But if there is a solution which does that automatically that I would appreciate it.
Thank you !