Files
wayvr/.github/workflows/scripts/appimage_package.sh
T
hypevhs 68944184de Embed update information within AppImages (#672)
Let linuxdeploy embed Update Information into each AppImage, allowing
for external apps (Gear Lever, Shelly, AppImageUpdate) to easily
download WayVR updates.

This also requires that a corresponding .zsync file be attached to each
release, for efficient transfer of updated AppImages.

See this section in the AppImage spec:

https://github.com/AppImage/AppImageSpec/blob/master/draft.md#update-information
2026-10-03 11:45:41 +09:00

33 lines
802 B
Bash
Executable File

#!/bin/sh
set -eu
case "$(uname -m)" in
x86_64|amd64)
APPIMAGE_ARCH=x86_64
;;
aarch64|arm64)
APPIMAGE_ARCH=aarch64
;;
*)
echo "Unsupported architecture: $(uname -m)" >&2
exit 1
;;
esac
LINUXDEPLOY="linuxdeploy-${APPIMAGE_ARCH}.AppImage"
VERSION="${GITHUB_REF_NAME:-dev}"
export VERSION
export LDAI_UPDATE_INFORMATION="gh-releases-zsync|wayvr-org|wayvr|latest|WayVR-*-${APPIMAGE_ARCH}.AppImage.zsync"
echo "Packaging AppImage for ${APPIMAGE_ARCH}"
"./${LINUXDEPLOY}" \
-dwayvr.desktop \
-iwayvr.png \
--appdir="${APPDIR}" \
--output appimage \
--exclude-library '*libpipewire*'
mv "WayVR-${VERSION}-${APPIMAGE_ARCH}.AppImage" "WayVR-${APPIMAGE_ARCH}.AppImage"
mv "WayVR-${VERSION}-${APPIMAGE_ARCH}.AppImage.zsync" "WayVR-${APPIMAGE_ARCH}.AppImage.zsync"