]> sigrok.org Git - sigrok-build.git/commitdiff
build.yml: Make MacOS build work
authorSoeren Apel <redacted>
Thu, 7 Mar 2024 17:03:40 +0000 (18:03 +0100)
committerSoeren Apel <redacted>
Thu, 7 Mar 2024 21:48:06 +0000 (22:48 +0100)
.github/workflows/build.yml
ci/macos/sigrok-macos-create-dmg.sh

index 7fa2937b48935bf0b17de429da727d91373d57b0..88e866ec0387875a56fea3b344cec2944bfb063f 100644 (file)
@@ -397,6 +397,10 @@ jobs:
           libzip libusb libftdi hidapi nettle check doxygen swig \
           glib glibmm@2.66 cmake boost sdcc $BREW_PYTHON_VERSION $BREW_QT_VERSION
 
+      - name: Provide qt also in prefix directory as qt is using a keg
+        run: |
+          brew link -f $BREW_QT_VERSION
+
       - name: Checkout sigrok-build
         uses: actions/checkout@v4
         with:
index d52d74b13f3b205a5e67ce31b528137c292cf689..4322e8e17d62f545e0c5ed24c2d6c05286932eaf 100755 (executable)
 set -e
 set -x
 
+
+echo "------------------------------------------"
+echo $(brew --prefix "$BREW_QT_VERSION")
+find /usr/local/opt/qt
+echo "------------------------------------------"
+echo $(brew --cellar "$BREW_QT_VERSION")
+echo "------------------------------------------"
+# Note: Turn "qt 6.6.1" into "qt/6.6.1"
+QT_VER=$(brew list --versions qt)
+QT_VER_PATH=$(echo $QT_VER | sed 's# #/#')
+p=$(brew --cellar)/$QT_VER_PATH/share/qt/translations
+find $p -iname "qt*.qm"
+echo "------------------------------------------"
+echo "------------------------------------------"
+
 # Path to Qt5 binaries
 QT_BIN_DIR=$(brew list "$BREW_QT_VERSION" | grep bin | head -n 1 | xargs dirname)
-QT_TRANSLATIONS_DIR=$(brew --prefix "$BREW_QT_VERSION")/translations
+QT_TRANSLATIONS_DIR=$p
 
 # Path to Python 3 framework
 PYTHON_FRAMEWORK_DIR=$(brew list "$BREW_PYTHON_VERSION" | grep Python.framework/Python | head -n 1 | xargs dirname)