2024-10-06 08:34:01 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
ROOTDIR="$(readlink -f "$(dirname "$0")")"/../../../
|
|
|
|
cd "$ROOTDIR"
|
|
|
|
|
|
|
|
BUILDDIR=${BUILDDIR:-publish}
|
|
|
|
OUTDIR=${OUTDIR:-publish_appimage}
|
|
|
|
|
|
|
|
rm -rf AppDir
|
|
|
|
mkdir -p AppDir/usr/bin/bin
|
|
|
|
|
|
|
|
# Ensure necessary bins are set as executable
|
|
|
|
chmod +x "$BUILDDIR"/Ryujinx*
|
|
|
|
|
|
|
|
# Add symlinks for the AppImage
|
2024-10-06 10:01:24 +02: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 08:34:01 +02:00
|
|
|
|
|
|
|
cp -r "$BUILDDIR"/* AppDir/usr/bin/
|
|
|
|
|
|
|
|
mkdir -p "$OUTDIR"
|
|
|
|
|
|
|
|
appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 21 \
|
|
|
|
-u "gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|Ryujinx|latest|*.AppImage.zsync" \
|
|
|
|
AppDir "$OUTDIR"/Ryujinx.AppImage
|
|
|
|
|
|
|
|
# ??
|
|
|
|
mv ./*.AppImage.zsync "$OUTDIR"
|