build-appimage.sh: builds AppImage + patches out MSDK/VA GStreamer plugins deploy.sh: full build + sign + upload + anchor swap. Credentials loaded from .deploy-creds (gitignored). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
908 B
Bash
Executable file
26 lines
908 B
Bash
Executable file
#!/bin/bash
|
|
# Build AppImage with GStreamer media framework + MSDK/VA patch
|
|
# Usage: ./build-appimage.sh
|
|
set -e
|
|
|
|
echo "=== Building AppImage ==="
|
|
cargo tauri build
|
|
|
|
echo "=== Patching: removing MSDK/VA plugins ==="
|
|
APPDIR="target/release/bundle/appimage/itsgoin.AppDir"
|
|
rm -f "$APPDIR"/usr/lib/gstreamer-1.0/libgstmsdk.so
|
|
rm -f "$APPDIR"/usr/lib/gstreamer-1.0/libgstva.so
|
|
|
|
echo "=== Repackaging AppImage ==="
|
|
APPIMAGETOOL=$(find /tmp -name "appimagetool" -executable 2>/dev/null | head -1)
|
|
if [ -z "$APPIMAGETOOL" ]; then
|
|
echo "ERROR: appimagetool not found in /tmp. It should have been cached by cargo tauri build."
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=$(grep '"version"' crates/tauri-app/tauri.conf.json | head -1 | sed 's/.*"\([0-9.]*\)".*/\1/')
|
|
OUTPUT="target/release/bundle/appimage/itsgoin_${VERSION}_amd64.AppImage"
|
|
ARCH=x86_64 "$APPIMAGETOOL" "$APPDIR" "$OUTPUT"
|
|
|
|
echo "=== Done: $OUTPUT ==="
|
|
ls -lh "$OUTPUT"
|