forked from qt-creator/qt-creator
Fix deployment of designer plugins.
Task-number: QTCREATORBUG-8256 Change-Id: I9b03debf9c4c918968fcdfd49078218b54a3b09f Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ macx {
|
||||
APPBUNDLE = "$$OUT_PWD/bin/Qt Creator.app"
|
||||
BINDIST_SOURCE = "$$OUT_PWD/bin/Qt Creator.app"
|
||||
BINDIST_INSTALLER_SOURCE = $$BINDIST_SOURCE
|
||||
deployqt.commands = $$PWD/scripts/deployqtHelper_mac.sh \"$${APPBUNDLE}\" \"$$[QT_INSTALL_TRANSLATIONS]\"
|
||||
deployqt.commands = $$PWD/scripts/deployqtHelper_mac.sh \"$${APPBUNDLE}\" \"$$[QT_INSTALL_TRANSLATIONS]\" \"$$[QT_INSTALL_PLUGINS]\"
|
||||
codesign.commands = codesign -s \"$(SIGNING_IDENTITY)\" $(SIGNING_FLAGS) \"$${APPBUNDLE}\"
|
||||
dmg.commands = $$PWD/scripts/makedmg.sh $$OUT_PWD/bin qt-creator-$${PATTERN}.dmg
|
||||
dmg.depends = deployqt
|
||||
|
||||
@@ -1,15 +1,24 @@
|
||||
#!/bin/bash
|
||||
[ $# -lt 2 ] && echo "Usage: $(basename $0) <app folder> <qt translations folder>" && exit 2
|
||||
[ $# -lt 3 ] && echo "Usage: $(basename $0) <app folder> <qt translations folder> <qt plugin folder>" && exit 2
|
||||
[ $(uname -s) != "Darwin" ] && echo "Run this script on Mac OS X" && exit 2;
|
||||
|
||||
# collect designer plugins
|
||||
designerDestDir="$1/Contents/PlugIns/designer"
|
||||
test -d "$designerDestDir" || mkdir -p "$designerDestDir"
|
||||
for plugin in "$3"/designer/*.dylib; do
|
||||
cp "$plugin" "$designerDestDir"/ || exit 1
|
||||
pluginbase=`basename "$plugin"`
|
||||
designerPluginArguments+="\"-executable=$designerDestDir/$pluginbase\" "
|
||||
done
|
||||
|
||||
macdeployqt "$1" \
|
||||
"-executable=$1/Contents/MacOS/qmlpuppet.app/Contents/MacOS/qmlpuppet" \
|
||||
"-executable=$1/Contents/Resources/qtpromaker" \
|
||||
"-executable=$1/Contents/Resources/sdktool" || exit 1
|
||||
"-executable=$1/Contents/Resources/sdktool" $designerPluginArguments || exit 1
|
||||
|
||||
qmlpuppetResources="$1/Contents/MacOS/qmlpuppet.app/Contents/Resources"
|
||||
test -d "$qmlpuppetResources" || mkdir -p "$qmlpuppetResources"
|
||||
cp "$(dirname "${BASH_SOURCE[0]}")/../dist/installer/mac/qmlpuppet_qt.conf" "$qmlpuppetResources/qt.conf"
|
||||
cp "$(dirname "${BASH_SOURCE[0]}")/../dist/installer/mac/qmlpuppet_qt.conf" "$qmlpuppetResources/qt.conf" || exit 1
|
||||
|
||||
# copy Qt translations
|
||||
cp "$2"/qt_*.qm "$1/Contents/Resources/translations/"
|
||||
cp "$2"/qt_*.qm "$1/Contents/Resources/translations/" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user