mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-11-26 11:56:26 -08:00
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
33 lines
802 B
Bash
Executable File
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"
|