build(embedded-mpv): enhance macOS build process and validation for embedded MPV integration

Entire-Checkpoint: c6e522b4276c
This commit is contained in:
4gray committed 2026-04-27 11:06:12 +02:00
1 parent 37fb7e41ee
commit 6aa4f2521b
6 files changed
+118 -18

No files matched your search

+22
View File
@@ -105,8 +105,30 @@ jobs:
- name: Build backend
env:
IPTVNATOR_EMBEDDED_MPV_ARCH: ${{ matrix.arch || '' }}
IPTVNATOR_REQUIRE_EMBEDDED_MPV: ${{ matrix.os == 'macos' && (startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request') && '1' || '0' }}
run: pnpm run build:backend
- name: Verify embedded MPV build output
# TEMPORARY PR TEST: remove `|| github.event_name == 'pull_request'`
# after the macOS Embedded MPV artifact is built and manually tested.
if: matrix.os == 'macos' && (startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request')
shell: bash
run: |
set -euo pipefail
echo "::group::Native build output"
find apps/electron-backend/native/build/Release -maxdepth 3 -type f | sort
echo "::endgroup::"
echo "::group::Dist native output"
find dist/apps/electron-backend/native -maxdepth 3 -type f | sort
echo "::endgroup::"
test -f apps/electron-backend/native/build/Release/embedded_mpv.node
test -f dist/apps/electron-backend/native/embedded_mpv.node
test -f dist/apps/electron-backend/native/embedded-mpv-runtime.json
test -f dist/apps/electron-backend/native/lib/libmpv.2.dylib
- name: Validate AppStream metadata
if: matrix.os == 'linux'
run: appstreamcli validate --pedantic --no-net apps/electron-backend/linux/com.fourgray.iptvnator.metainfo.xml