From 8f35809df7c1beb97ab3dfd4af07b131f7bd289a Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 20:45:55 -0600 Subject: [PATCH 1/6] ci(release): desktop-entry icon gate; Icon Composer app icon on macOS Linux: scripts/packaging/desktop_entry_check.sh asserts the MPRIS DesktopEntry constant against the recipes (nfpm basename + Icon=, StartupWMClass, reverse-DNS basenames) and against the built deb/rpm/ AppDir. The AppDir's desktop file now carries the reverse-DNS basename so an integrated AppImage resolves the media-widget icon too. This invariant regressed more than once; it is a gate now, not a rename. macOS: compile packaging/icons/QBZ.icon (Icon Composer, issue #712) with Xcode 26's actool into Assets.car + CFBundleIconName=QBZ; icon.icns stays as CFBundleIconFile for older macOS. The Intel leg moves to macos-26-intel so both legs carry actool. cc --- .github/workflows/build-qt-linux.yml | 8 ++- .github/workflows/release-linux-aarch64.yml | 16 +++++ .github/workflows/release-linux.yml | 16 +++++ .github/workflows/release-macos.yml | 30 ++++++++- scripts/packaging/desktop_entry_check.sh | 72 +++++++++++++++++++++ 5 files changed, 138 insertions(+), 4 deletions(-) create mode 100755 scripts/packaging/desktop_entry_check.sh diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index c6326fb61..172cbc302 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -191,10 +191,14 @@ jobs: curl -fsSL -o linuxdeploy-plugin-qt \ "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${ARCH_TAG}.AppImage" chmod +x linuxdeploy linuxdeploy-plugin-qt - cp packaging/linux/qbz.desktop qbz.desktop + # The desktop file goes in under the MPRIS DesktopEntry basename + # (com.blitzfc.qbz.desktop), so an integrated AppImage resolves the + # media-widget icon like the deb/rpm do. Icon=qbz -> qbz.png. + cp packaging/linux/qbz.desktop com.blitzfc.qbz.desktop cp packaging/icons/256x256.png qbz.png ./linuxdeploy --appimage-extract-and-run --appdir AppDir \ - -e qbz -d qbz.desktop -i qbz.png --plugin qt + -e qbz -d com.blitzfc.qbz.desktop -i qbz.png --plugin qt + scripts/packaging/desktop_entry_check.sh --appdir AppDir # Nothing in the app uses Qt SQL / network-information plugins. rm -rf AppDir/usr/plugins/sqldrivers AppDir/usr/plugins/networkinformation echo "platforms: $(ls AppDir/usr/plugins/platforms | tr '\n' ' ')" diff --git a/.github/workflows/release-linux-aarch64.yml b/.github/workflows/release-linux-aarch64.yml index 65ba4abcf..9368f6981 100644 --- a/.github/workflows/release-linux-aarch64.yml +++ b/.github/workflows/release-linux-aarch64.yml @@ -104,6 +104,12 @@ jobs: exit 1 fi + # The media-widget icon invariant (DesktopEntry == installed .desktop + # basename, Icon= installed) — regressed more than once, so it is a + # gate at the recipe level here and on the built packages below. + - name: Gate — desktop entry / icon invariant (recipes) + run: scripts/packaging/desktop_entry_check.sh + # No workflow may build the frozen Slint binary: same bin name, same # target dir, last build wins the file — a smoke against "the wrong # qbz" is silent. @@ -225,6 +231,16 @@ jobs: -t "dist/qbzd-${VERSION}-1.${RPM_ARCH}.rpm" ls -la dist + # The same invariant on the ARTIFACTS: the deb/rpm must install + # /usr/share/applications/.desktop and its Icon=. + - name: Gate — desktop entry / icon invariant (packages) + run: | + sudo apt-get install -y --no-install-recommends rpm + scripts/packaging/desktop_entry_check.sh \ + --deb "dist/QBZ_${VERSION}_${DEB_ARCH}.deb" \ + --rpm "dist/QBZ-${VERSION}-1.${RPM_ARCH}.rpm" \ + --appdir AppDir + - name: Build AppImage run: | curl -fsSL -o appimagetool \ diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 3a07777d9..db18d0455 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -104,6 +104,12 @@ jobs: exit 1 fi + # The media-widget icon invariant (DesktopEntry == installed .desktop + # basename, Icon= installed) — regressed more than once, so it is a + # gate at the recipe level here and on the built packages below. + - name: Gate — desktop entry / icon invariant (recipes) + run: scripts/packaging/desktop_entry_check.sh + # No workflow may build the frozen Slint binary: same bin name, same # target dir, last build wins the file — a smoke against "the wrong # qbz" is silent. @@ -225,6 +231,16 @@ jobs: -t "dist/qbzd-${VERSION}-1.${RPM_ARCH}.rpm" ls -la dist + # The same invariant on the ARTIFACTS: the deb/rpm must install + # /usr/share/applications/.desktop and its Icon=. + - name: Gate — desktop entry / icon invariant (packages) + run: | + sudo apt-get install -y --no-install-recommends rpm + scripts/packaging/desktop_entry_check.sh \ + --deb "dist/QBZ_${VERSION}_${DEB_ARCH}.deb" \ + --rpm "dist/QBZ-${VERSION}-1.${RPM_ARCH}.rpm" \ + --appdir AppDir + - name: Build AppImage run: | curl -fsSL -o appimagetool \ diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index efead6c97..d85f93de8 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -56,8 +56,9 @@ jobs: cxxflags: "-include arm_acle.h" - target: x86_64-apple-darwin # macos-latest is arm64; Intel needs an Intel runner (arm_acle.h - # is ARM-only, so no CXXFLAGS here). - runner: macos-15-intel + # is ARM-only, so no CXXFLAGS here). macos-26-intel so both legs + # carry Xcode 26's actool for the Icon Composer app icon. + runner: macos-26-intel artifact: qbz-macos-x86_64 # Historical dmg naming: intel assets ship as "x64". arch: x64 @@ -165,6 +166,30 @@ jobs: cp "crates/target/${{ matrix.target }}/release/qbz" "$APP/Contents/MacOS/qbz" chmod +x "$APP/Contents/MacOS/qbz" cp packaging/icons/icon.icns "$APP/Contents/Resources/icon.icns" + # The Liquid Glass app icon (packaging/icons/QBZ.icon, Icon Composer + # source, issue #712): compiled by Xcode 26's actool into + # Assets.car + CFBundleIconName=QBZ. macOS 26 renders the layered + # icon; older macOS and a runner without Xcode 26 fall back to + # icon.icns via CFBundleIconFile, which is always written. + ICON_NAME_KEY="" + if xcrun --find actool >/dev/null 2>&1 \ + && [[ "$(xcodebuild -version | head -1 | grep -oE '[0-9]+' | head -1)" -ge 26 ]]; then + xcrun actool packaging/icons/QBZ.icon \ + --compile "$APP/Contents/Resources" \ + --app-icon QBZ \ + --platform macosx --minimum-deployment-target 12.0 \ + --include-all-app-icons \ + --output-partial-info-plist icon-partial.plist \ + --errors --warnings --notices 2>&1 | tee actool.log + test -f "$APP/Contents/Resources/Assets.car" \ + || { echo "::error::actool produced no Assets.car"; exit 1; } + /usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' icon-partial.plist \ + || { echo "::error::actool partial plist has no CFBundleIconName"; exit 1; } + ICON_NAME_KEY='CFBundleIconNameQBZ' + echo "app icon: Icon Composer source compiled (Assets.car)" + else + echo "::warning::Xcode 26 actool not available — shipping icon.icns only" + fi cat > "$APP/Contents/Info.plist" < @@ -176,6 +201,7 @@ jobs: CFBundleDisplayNameQBZ CFBundleExecutableqbz CFBundleIconFileicon + ${ICON_NAME_KEY} CFBundleShortVersionString${VERSION} CFBundleVersion${VERSION} LSMinimumSystemVersion12.0 diff --git a/scripts/packaging/desktop_entry_check.sh b/scripts/packaging/desktop_entry_check.sh new file mode 100755 index 000000000..e724f2992 --- /dev/null +++ b/scripts/packaging/desktop_entry_check.sh @@ -0,0 +1,72 @@ +#!/usr/bin/env bash +# scripts/packaging/desktop_entry_check.sh — the MPRIS DesktopEntry / .desktop +# / icon invariant, as a gate (qbz-nix-docs/cicd/2026-08-04-desktop-entry-icon-mismatch.md). +# +# GNOME Shell / Plasma resolve the media widget's application icon ONLY through +# the MPRIS `DesktopEntry` property: they look for `.desktop` in +# the XDG application dirs and read its `Icon=`. If the installed basename +# differs from the constant, or `Icon=` names an icon the same package does not +# install, the widget shows no icon — and nothing else breaks, which is why +# this regressed more than once. Two properties, asserted at the SOURCE +# (recipes) and, when `--deb ` / `--rpm ` / `--appdir ` are +# given, on the ARTIFACT that ships. +set -euo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")/../.." + +ENTRY=$(grep -oP 'const DESKTOP_ENTRY: &str = "\K[^"]+' crates/qbz-media-controls/src/linux.rs) +[[ -n "$ENTRY" ]] || { echo "::error::DESKTOP_ENTRY constant not found"; exit 1; } +echo "DesktopEntry = $ENTRY" +fail=0 +say_fail() { echo "::error::$*"; fail=1; } + +icon_of() { grep -m1 '^Icon=' "$1" | cut -d= -f2-; } + +# --- source recipes ----------------------------------------------------- +# nfpm (deb/rpm): the installed basename must be the constant; Icon= must be +# one of the hicolor names nfpm installs. +NFPM=packaging/nfpm/nfpm.yaml +dst=$(grep -oP 'dst: /usr/share/applications/\K[^ ]+\.desktop' "$NFPM" | head -1) +[[ "$dst" == "$ENTRY.desktop" ]] || say_fail "nfpm installs $dst, DesktopEntry is $ENTRY" +src=$(grep -B1 "dst: /usr/share/applications/$dst" "$NFPM" | grep -oP 'src: \K\S+') +icon=$(icon_of "$src") +grep -q "dst: /usr/share/icons/hicolor/[0-9x]*/apps/${icon}\.png" "$NFPM" \ + || say_fail "nfpm: $src has Icon=$icon but installs no hicolor/*/apps/$icon.png" +# StartupWMClass must be the constant too (window <-> launcher association). +for f in $(git ls-files 'packaging/*.desktop' 'flatpak/*.desktop'); do + wm=$(grep -m1 '^StartupWMClass=' "$f" | cut -d= -f2-) + [[ "$wm" == "$ENTRY" ]] || say_fail "$f: StartupWMClass=$wm != $ENTRY" +done +# Recipes that ship a reverse-DNS basename must match the constant exactly. +for f in $(git ls-files 'packaging/*.desktop' 'flatpak/*.desktop' | grep -v '/qbz\.desktop$'); do + base=$(basename "$f" .desktop) + [[ "$base" == "$ENTRY" ]] || say_fail "$f: basename $base != $ENTRY" +done + +# --- artifacts ------------------------------------------------------------ +while [[ $# -gt 0 ]]; do + case "$1" in + --deb) + list=$(dpkg-deb -c "$2" | awk '{print $6}') + grep -qx "./usr/share/applications/$ENTRY.desktop" <<<"$list" \ + || say_fail "$2 does not install /usr/share/applications/$ENTRY.desktop" + grep -q "^./usr/share/icons/hicolor/256x256/apps/${icon}\.png$" <<<"$list" \ + || say_fail "$2 does not install hicolor/256x256/apps/$icon.png" + echo "deb OK: $2"; shift 2 ;; + --rpm) + list=$(rpm -qlp "$2" 2>/dev/null || true) + grep -qx "/usr/share/applications/$ENTRY.desktop" <<<"$list" \ + || say_fail "$2 does not install /usr/share/applications/$ENTRY.desktop" + grep -q "^/usr/share/icons/hicolor/256x256/apps/${icon}\.png$" <<<"$list" \ + || say_fail "$2 does not install hicolor/256x256/apps/$icon.png" + echo "rpm OK: $2"; shift 2 ;; + --appdir) + d="$2" + [[ -f "$d/$ENTRY.desktop" ]] || say_fail "$d has no $ENTRY.desktop at its root" + aicon=$(icon_of "$d/$ENTRY.desktop") + [[ -f "$d/$aicon.png" || -L "$d/$aicon.png" ]] || say_fail "$d: Icon=$aicon but no $aicon.png at the root" + [[ -e "$d/.DirIcon" ]] || say_fail "$d has no .DirIcon" + echo "AppDir OK: $d"; shift 2 ;; + *) echo "unknown arg $1"; exit 2 ;; + esac +done +(( fail == 0 )) && echo "desktop-entry check OK" || exit 1 From 37a1a75de1b68c8551b0f8ab6fbfe2c81c66178e Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:03:47 -0600 Subject: [PATCH 2/6] ci(linux): pass QMAKE to cxx-qt-build; fix(player): macOS match covers StreamType::Direct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aarch64 runner: cxx-qt-build reported QtMissing with a correct QT_ROOT_DIR — set QMAKE/CMAKE_PREFIX_PATH explicitly (as macOS/Windows already do) and print the qmake version before the build. macOS: StreamType::output_sample_rate (macOS-only) matched Rodio only; Direct is intentionally not cfg-gated, so the macOS build failed with E0004. A direct sink answers with its opened rate. cc --- .github/workflows/build-qt-linux.yml | 7 +++++++ crates/qbz-player/src/player/mod.rs | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 172cbc302..88595421b 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -145,7 +145,14 @@ jobs: # Keep symbols in this build: the unstripped copy is archived for # crash symbolication, then stripped for every shipped artifact. CARGO_PROFILE_RELEASE_STRIP: "none" + # EXPLICIT qmake, as the macOS/Windows recipes do. On the arm64 + # runner cxx-qt-build failed with "Could not find Qt installation: + # QtMissing" although QT_ROOT_DIR was correct (2026-08-29 run) — + # the PATH lookup is not something to rely on across hosts. + QMAKE: ${{ env.QT_ROOT_DIR }}/bin/qmake + CMAKE_PREFIX_PATH: ${{ env.QT_ROOT_DIR }} run: | + "$QMAKE" -query QT_VERSION cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt cp crates/target/release/qbz qbz-unstripped strip -o qbz crates/target/release/qbz diff --git a/crates/qbz-player/src/player/mod.rs b/crates/qbz-player/src/player/mod.rs index 00f08fa38..a435fb8d5 100644 --- a/crates/qbz-player/src/player/mod.rs +++ b/crates/qbz-player/src/player/mod.rs @@ -620,6 +620,10 @@ impl StreamType { fn output_sample_rate(&self) -> u32 { match self { StreamType::Rodio { sink, .. } => sink.config().sample_rate().get(), + // `Direct` is deliberately not cfg-gated (see the enum), so this + // macOS-only match must name it: a direct sink reports the rate it + // was opened at. Without this arm the macOS build does not compile. + StreamType::Direct(sink) => sink.sample_rate(), } } } From fd980440afdf979d88e95de296e7f89e55fbce0e Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:10:04 -0600 Subject: [PATCH 3/6] ci(linux-arm64): Qt 6.9.3 for aarch64 (aqt's 6.8.3 arm64 qmake segfaults on the runner) The QMAKE handoff exposed the real failure: aqt's linux_gcc_arm64 6.8.3 qmake dies with SIGSEGV on ubuntu-22.04-arm, which cxx-qt-build reported as QtMissing. The arm line pins 6.9.3 (QT_VERSION_LINUX_ARM64 overrides); x86_64 keeps the 6.8 LTS floor. file/ldd diagnostics run before the qmake query so the next such failure names itself. cc --- .github/workflows/build-qt-linux.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 88595421b..8ab222e5c 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -67,14 +67,18 @@ on: # 6.8 is the LTS line and the floor the tree needs once the six macOS-only # SafeArea/padding lines are guarded (contracts §1 / §4 #0). Keep in sync # with the same pin in test-crates.yml. -env: - QT_VERSION: ${{ vars.QT_VERSION_LINUX || '6.8.3' }} - jobs: build: name: build (${{ inputs.arch }}) runs-on: ${{ inputs.arch == 'aarch64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }} timeout-minutes: 120 + env: + # x86_64 keeps the 6.8 LTS floor. aarch64 pins its own: aqt's 6.8.3 + # linux_gcc_arm64 qmake SEGFAULTS on ubuntu-22.04-arm (2026-08-29 run, + # exit 139 on `qmake -query`), so the arm line takes 6.9.3 until an + # arm64 6.8.x that runs there exists. `vars.QT_VERSION_LINUX_ARM64` + # overrides without a commit. + QT_VERSION: ${{ inputs.arch == 'aarch64' && (vars.QT_VERSION_LINUX_ARM64 || '6.9.3') || (vars.QT_VERSION_LINUX || '6.8.3') }} outputs: version: ${{ steps.version.outputs.version }} steps: @@ -152,6 +156,10 @@ jobs: QMAKE: ${{ env.QT_ROOT_DIR }}/bin/qmake CMAKE_PREFIX_PATH: ${{ env.QT_ROOT_DIR }} run: | + # Diagnostics first: a qmake that cannot run here is the arm64 + # failure mode (segfault), and cxx-qt-build only says "QtMissing". + file "$QMAKE" || true + ldd "$QMAKE" | grep -E 'not found' || true "$QMAKE" -query QT_VERSION cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt cp crates/target/release/qbz qbz-unstripped From 860f1ad67f2cc89373fdf0f56106a8ef820e9b11 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:10:49 -0600 Subject: [PATCH 4/6] ci(linux): the AppDir check no longer expects .DirIcon (appimagetool writes it) cc --- scripts/packaging/desktop_entry_check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/packaging/desktop_entry_check.sh b/scripts/packaging/desktop_entry_check.sh index e724f2992..f32713c79 100755 --- a/scripts/packaging/desktop_entry_check.sh +++ b/scripts/packaging/desktop_entry_check.sh @@ -64,7 +64,8 @@ while [[ $# -gt 0 ]]; do [[ -f "$d/$ENTRY.desktop" ]] || say_fail "$d has no $ENTRY.desktop at its root" aicon=$(icon_of "$d/$ENTRY.desktop") [[ -f "$d/$aicon.png" || -L "$d/$aicon.png" ]] || say_fail "$d: Icon=$aicon but no $aicon.png at the root" - [[ -e "$d/.DirIcon" ]] || say_fail "$d has no .DirIcon" + # No .DirIcon assertion: linuxdeploy does not write it (appimagetool + # does, at packaging time) — asserting it here failed a green build. echo "AppDir OK: $d"; shift 2 ;; *) echo "unknown arg $1"; exit 2 ;; esac From e70e5e4ab9a74eb18957d4bf66bbb3e08d7f7f0f Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:13:51 -0600 Subject: [PATCH 5/6] =?UTF-8?q?ci(linux-arm64):=20experiment=20=E2=80=94?= =?UTF-8?q?=20build=20aarch64=20on=20ubuntu-24.04-arm=20(aqt=20qmake=20seg?= =?UTF-8?q?faults=20on=2022.04-arm)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both 6.8.3 and 6.9.3 arm64 qmake die with SIGSEGV on ubuntu-22.04-arm with no missing libraries. Try the 24.04-arm image; the glibc floor gate warns instead of failing for aarch64 until the floor is decided. cc --- .github/workflows/build-qt-linux.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 8ab222e5c..26be79fb8 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -70,7 +70,11 @@ on: jobs: build: name: build (${{ inputs.arch }}) - runs-on: ${{ inputs.arch == 'aarch64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }} + # aarch64 on 24.04-arm: aqt's arm64 Qt host tools (6.8.3 AND 6.9.3 qmake) + # SIGSEGV on ubuntu-22.04-arm with a clean ldd (2026-08-29, two runs). + # EXPERIMENT — the glibc floor gate below only warns for aarch64 until + # the owner rules on the Pi (bookworm = 2.36) floor. + runs-on: ${{ inputs.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-22.04' }} timeout-minutes: 120 env: # x86_64 keeps the 6.8 LTS floor. aarch64 pins its own: aqt's 6.8.3 @@ -158,8 +162,11 @@ jobs: run: | # Diagnostics first: a qmake that cannot run here is the arm64 # failure mode (segfault), and cxx-qt-build only says "QtMissing". + uname -a; getconf PAGESIZE; ldd --version | head -1 file "$QMAKE" || true ldd "$QMAKE" | grep -E 'not found' || true + "$QT_ROOT_DIR/libexec/moc" --version || true + "$QT_ROOT_DIR/libexec/qmlcachegen" --version || true "$QMAKE" -query QT_VERSION cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt cp crates/target/release/qbz qbz-unstripped @@ -181,7 +188,13 @@ jobs: floor=$(objdump -T qbz | grep -oE 'GLIBC_[0-9]+\.[0-9]+' | sort -Vu | tail -1) echo "glibc floor: $floor" highest=$(printf '%s\n' "$floor" "GLIBC_2.35" | sort -V | tail -1) - [ "$highest" = "GLIBC_2.35" ] || { echo "::error::glibc floor $floor exceeds 2.35"; exit 1; } + if [ "$highest" != "GLIBC_2.35" ]; then + if [ "${{ inputs.arch }}" = aarch64 ]; then + echo "::warning::aarch64 glibc floor $floor exceeds 2.35 (24.04-arm runner experiment; owner decision pending)" + else + echo "::error::glibc floor $floor exceeds 2.35"; exit 1 + fi + fi # Self-contained AppDir. The plugin scans QML_SOURCES_PATHS for imports # and copies exactly the Qt QML modules the app uses (Effects, labs, From d66c993ade7c53a1130926abd47fc815520d5971 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:41:15 -0600 Subject: [PATCH 6/6] ci(macos): accept @rpath Qt install names with a bundle-relative LC_RPATH Qt 6.9's macdeployqt leaves @rpath/Qt*.framework references resolved through LC_RPATH @executable_path/../Frameworks; the old assert only accepted a literal @executable_path and failed a correct bundle. Reject absolute paths, require the rpath, and let the offscreen smoke prove it. cc --- .github/workflows/release-macos.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index d85f93de8..6f3bb0b23 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -244,9 +244,17 @@ jobs: test -f "$APP/Contents/PlugIns/platforms/libqcocoa.dylib" test -d "$APP/Contents/Resources/qml/QtQuick/Effects" test -f "$APP/Contents/Resources/qt.conf" - # Every Qt reference must now be bundle-relative. - if otool -L "$APP/Contents/MacOS/qbz" | grep -E 'Qt.*\.framework' | grep -vq '@executable_path'; then - otool -L "$APP/Contents/MacOS/qbz"; echo "::error::binary still links Qt outside the bundle"; exit 1 + # Every Qt reference must now be bundle-relative. Qt 6.9's + # macdeployqt leaves the install names as @rpath/Qt*.framework and + # resolves them through an LC_RPATH of @executable_path/../Frameworks + # (measured 2026-08-29, macos-26 runner) — so the assert is: no + # ABSOLUTE Qt path survives, and that rpath is present. The offscreen + # smoke below (Qt install hidden) is the end-to-end proof. + if otool -L "$APP/Contents/MacOS/qbz" | grep -E 'Qt.*\.framework' | grep -Eq '^\s*/'; then + otool -L "$APP/Contents/MacOS/qbz"; echo "::error::binary still links Qt by absolute path outside the bundle"; exit 1 + fi + if ! otool -l "$APP/Contents/MacOS/qbz" | grep -A2 LC_RPATH | grep -Eq '@(executable|loader)_path/\.\./Frameworks'; then + otool -l "$APP/Contents/MacOS/qbz" | grep -A2 LC_RPATH; echo "::error::no bundle-relative LC_RPATH for the Qt frameworks"; exit 1 fi # offscreen platform plugin: only for the smoke below (macdeployqt # deploys cocoa alone). Removed again before signing/packing.