File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
buildscripts/packaging/macOS Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ endif()
7373###########################################
7474if (OS_IS_MAC)
7575 SET (Mscore_INSTALL_NAME "Contents/Resources/" )
76- SET (Mscore_FRAMEWORKS_NAME "Frameworks/" )
7776 SET (Mscore_SHARE_NAME "mscore.app/" )
7877elseif (OS_IS_WIN)
7978 SET (Mscore_INSTALL_NAME "" )
Original file line number Diff line number Diff line change @@ -60,6 +60,18 @@ macdeployqt ${VOLUME}/${APPNAME}.app -verbose=2 -qmldir=.
6060echo " otool -L post-macdeployqt"
6161otool -L ${VOLUME} /${APPNAME} .app/Contents/MacOS/mscore
6262
63+ # Remove dSYM files
64+ echo " Remove dSYM files"
65+ find ${VOLUME} /${APPNAME} .app/Contents -type d -name " *.dSYM" -exec rm -r {} +
66+
67+ # Rename Resources/qml to Resources/qml_mu. This way, VST3 plugins that also use QML
68+ # won't find these QML files, to prevent crashes because of conflicts.
69+ # https://github.com/musescore/MuseScore/issues/21372
70+ # https://github.com/musescore/MuseScore/issues/24331
71+ echo " Rename Resources/qml to Resources/qml_mu"
72+ mv ${VOLUME} /${APPNAME} .app/Contents/Resources/qml ${VOLUME} /${APPNAME} .app/Contents/Resources/qml_mu
73+ sed -i ' ' ' s:Resources/qml:Resources/qml_mu:g' ${VOLUME} /${APPNAME} .app/Contents/Resources/qt.conf
74+
6375echo " Rename ${APPNAME} .app to ${VOLUME} /${LONGER_NAME} .app"
6476mv ${VOLUME} /${APPNAME} .app " ${VOLUME} /${LONGER_NAME} .app"
6577
You can’t perform that action at this time.
0 commit comments