build-appimage.sh 840 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. set -eu
  3. ROOTDIR="$(readlink -f "$(dirname "$0")")"/../../../
  4. cd "$ROOTDIR"
  5. BUILDDIR=${BUILDDIR:-publish}
  6. OUTDIR=${OUTDIR:-publish_appimage}
  7. UFLAG=${UFLAG:-"gh-releases-zsync|Ryubing|ryujinx|latest|*-x64.AppImage.zsync"}
  8. rm -rf AppDir
  9. mkdir -p AppDir/usr/bin
  10. cp distribution/linux/Ryujinx.desktop AppDir/Ryujinx.desktop
  11. cp distribution/linux/appimage/AppRun AppDir/AppRun
  12. cp distribution/misc/Logo.svg AppDir/Ryujinx.svg
  13. cp -r "$BUILDDIR"/* AppDir/usr/bin/
  14. # Ensure necessary bins are set as executable
  15. chmod +x AppDir/AppRun AppDir/usr/bin/Ryujinx*
  16. mkdir -p "$OUTDIR"
  17. appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 21 \
  18. -u "$UFLAG" \
  19. AppDir "$OUTDIR"/Ryujinx.AppImage
  20. # Move zsync file needed for delta updates
  21. if [ "$RELEASE" = "1" ]; then
  22. mv ./*.AppImage.zsync "$OUTDIR"
  23. fi