Netflex 0.1.3: automatic look (Material on weak GPUs), fixed ARM release build
All checks were successful
release / release (push) Successful in 22m41s

- Fennec SDK 0.1.1: "Automatikus" now measures the GPU and picks full
  glass, light glass or the matte Material style; "Kikapcsolva" became
  "Matt" (Material). A Raspberry Pi 4 gets Material.
- The 0.1.2 release build failed: arm64 GStreamer dev packages can't be
  installed next to the amd64 ones on the runner. package.sh --arm now
  links the arm64 GStreamer runtime libraries directly (system-deps
  without pkg-config), so the CI installs no GStreamer dev package twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-01 19:16:26 +01:00
parent af4e21ee6f
commit 7ab4ae0c4b
7 changed files with 45 additions and 28 deletions

View File

@@ -9,11 +9,12 @@
# Build on Debian trixie or older (the TV's glibc), with the GStreamer dev
# packages (libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev) and
# sf-pack from the Fennec SDK:
# cargo install --locked --git https://gitea.bluefox.support/fennec/sdk --tag v0.1.0 sf-pack
# --arm needs gcc-aarch64-linux-gnu and the arm64 (multiarch) dev packages
# instead. The GStreamer dev packages of the two architectures can't be
# installed together: swap them between the two runs, as
# .gitea/workflows/release.yml does.
# cargo install --locked --git https://gitea.bluefox.support/fennec/sdk --tag v0.1.1 sf-pack
# --arm also needs gcc-aarch64-linux-gnu, the arm64 (multiarch) dev packages
# of fontconfig, freetype, xkbcommon and glib, and the arm64 GStreamer
# runtime libraries (libgstreamer1.0-0:arm64 libgstreamer-plugins-base1.0-0:arm64).
# Not the GStreamer dev packages: they can't be installed for two
# architectures at once, so the build links the runtime libraries directly.
set -euo pipefail
cd "$(dirname "$0")"
@@ -43,6 +44,20 @@ else
export PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_SYSROOT_DIR=/
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
rustup target list --installed | grep -qx "$t" || rustup target add "$t"
# GStreamer without pkg-config (system-deps): link the runtime libraries
# through a folder of unversioned names.
mkdir -p "$target"
gst="$(cd "$target" && pwd)/arm-gstreamer"
rm -rf "$gst" && mkdir -p "$gst"
# system-deps key (the pkg-config name) and the library it stands for.
for pair in GSTREAMER_1_0:gstreamer-1.0 GSTREAMER_BASE_1_0:gstbase-1.0 \
GSTREAMER_APP_1_0:gstapp-1.0 GSTREAMER_VIDEO_1_0:gstvideo-1.0; do
key=${pair%%:*} lib=${pair#*:}
so=/usr/lib/aarch64-linux-gnu/lib$lib.so.0
[ -e "$so" ] || { echo "missing $so (install the arm64 GStreamer runtime libraries)" >&2; exit 1; }
ln -s "$so" "$gst/lib$lib.so"
export "SYSTEM_DEPS_${key}_NO_PKG_CONFIG=1" "SYSTEM_DEPS_${key}_LIB=$lib" "SYSTEM_DEPS_${key}_SEARCH_NATIVE=$gst"
done
cargo build --release --locked --target "$t"
rm -rf dist-arm
pack "$target/$t/release/netflex-tv" dist-arm