2024-10-06 06:34:01 +00:00
|
|
|
#!/bin/sh
|
2024-10-06 19:14:04 +00:00
|
|
|
set -eu
|
2024-10-06 06:34:01 +00:00
|
|
|
|
|
|
|
ROOTDIR="$(readlink -f "$(dirname "$0")")"/../../../
|
|
|
|
cd "$ROOTDIR"
|
|
|
|
|
|
|
|
BUILDDIR=${BUILDDIR:-publish}
|
|
|
|
OUTDIR=${OUTDIR:-publish_appimage}
|
2024-10-06 19:14:04 +00:00
|
|
|
UFLAG=${UFLAG:-"gh-releases-zsync|ryujinx-mirror|ryujinx|latest|*-x64.AppImage.zsync"}
|
2024-10-06 06:34:01 +00:00
|
|
|
|
|
|
|
rm -rf AppDir
|
2024-10-06 19:14:04 +00:00
|
|
|
mkdir -p AppDir/usr/bin
|
2024-10-06 06:34:01 +00:00
|
|
|
|
2024-10-06 08:01:24 +00:00
|
|
|
cp distribution/linux/Ryujinx.desktop AppDir/Ryujinx.desktop
|
|
|
|
cp distribution/linux/appimage/AppRun AppDir/AppRun
|
|
|
|
cp distribution/misc/Logo.svg AppDir/Ryujinx.svg
|
2024-10-06 06:34:01 +00:00
|
|
|
|
|
|
|
cp -r "$BUILDDIR"/* AppDir/usr/bin/
|
|
|
|
|
2024-10-06 08:16:37 +00:00
|
|
|
# Ensure necessary bins are set as executable
|
|
|
|
chmod +x AppDir/AppRun AppDir/usr/bin/Ryujinx*
|
|
|
|
|
2024-10-06 06:34:01 +00:00
|
|
|
mkdir -p "$OUTDIR"
|
|
|
|
|
|
|
|
appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 21 \
|
2024-10-06 19:14:04 +00:00
|
|
|
-u "$UFLAG" \
|
2024-10-06 06:34:01 +00:00
|
|
|
AppDir "$OUTDIR"/Ryujinx.AppImage
|
|
|
|
|
2024-10-06 19:14:04 +00:00
|
|
|
# Move zsync file needed for delta updates
|
2024-10-06 06:34:01 +00:00
|
|
|
mv ./*.AppImage.zsync "$OUTDIR"
|