ci(snap): use stable GitHub Actions v6 and make runtime library resolution robust

This commit is contained in:
Chandragupt
2026-01-08 09:06:49 +05:30
parent 643857e98f
commit 493495361d
2 changed files with 15 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
0.96.5 (2026-01-05)
-------------------
- New: Added Snap packaging support with Snapcraft configuration and GitHub Actions CI workflow.
- New: Add Snap packaging support with Snapcraft configuration and GitHub Actions CI workflow.
- New: Add support for raw CDP (Caption Distribution Packet) files (#1406)
- New: Add --scc-accurate-timing option for bandwidth-aware SCC output (#1120)
- Fix: MXF files containing CEA-708 captions not being detected/extracted (#1647)

View File

@@ -1,12 +1,21 @@
#!/bin/sh
set -e
# Ensure runtime resolution of bundled libraries (FFmpeg / GPAC / PulseAudio)
# Default fallback
LIB_TRIPLET="x86_64-linux-gnu"
export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu:\
$SNAP/usr/lib/x86_64-linux-gnu/blas:\
$SNAP/usr/lib/x86_64-linux-gnu/lapack:\
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:\
# Detect multiarch directory if present
for d in "$SNAP/usr/lib/"*-linux-gnu; do
if [ -d "$d" ]; then
LIB_TRIPLET=$(basename "$d")
break
fi
done
export LD_LIBRARY_PATH="$SNAP/usr/lib/$LIB_TRIPLET:\
$SNAP/usr/lib/$LIB_TRIPLET/blas:\
$SNAP/usr/lib/$LIB_TRIPLET/lapack:\
$SNAP/usr/lib/$LIB_TRIPLET/pulseaudio:\
${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
exec "$SNAP/usr/local/bin/ccextractor" "$@"