X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=cross-compile%2Fmacosx%2Fcreate_dmg;fp=cross-compile%2Fmacosx%2Fcreate_dmg;h=002927ecf16a56133f9da9b21775c10bc2f4d51e;hb=610b09fa5cf555dc10fd3260f536251b3e864976;hp=734852830a4980c94d48487376310475e662d694;hpb=12d9516ec3a7d511db14866b5226fe7891380e3e;p=sigrok-util.git diff --git a/cross-compile/macosx/create_dmg b/cross-compile/macosx/create_dmg index 7348528..002927e 100755 --- a/cross-compile/macosx/create_dmg +++ b/cross-compile/macosx/create_dmg @@ -31,6 +31,7 @@ QTVER=qt@5.5 # Path to Qt5 binaries. QTBINDIR=`brew list $QTVER | grep bin | head -n 1 | xargs dirname` +QTTRANSLATIONSDIR=`brew --prefix $QTVER`/translations # Path to boost libraries. BOOSTLIBDIR=`brew list boost | grep libboost_system | head -n 1 | xargs dirname` @@ -72,6 +73,13 @@ cp $BOOSTLIBDIR/libboost_timer-mt.dylib $FRAMEWORKSDIR cp $BOOSTLIBDIR/libboost_chrono-mt.dylib $FRAMEWORKSDIR chmod 644 $FRAMEWORKSDIR/*boost* +# Manually copy translations ("macdeployqt" won't copy them). +mkdir -p $CONTENTSDIR/translations +for lang in "de"; do + cp $QTTRANSLATIONSDIR/qt_$lang.qm $CONTENTSDIR/translations + cp $QTTRANSLATIONSDIR/qtbase_$lang.qm $CONTENTSDIR/translations +done + $QTBINDIR/macdeployqt $APPNAME.app # Copy Python framework and fix it up.