1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-08-23 14:16:26 -05:00

infra: Add AppImage build workflow (#28)

Co-authored-by: reggie <reggie@latte.to>
This commit is contained in:
Samuel
2024-10-06 02:34:01 -04:00
committed by GitHub
parent f49bd44cc1
commit aa34084ba1
4 changed files with 85 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
CURRENTDIR="$(readlink -f "$(dirname "$0")")"
exec "$CURRENTDIR"/usr/bin/Ryujinx.sh "$@"

View File

@@ -0,0 +1,30 @@
#!/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
ln -s "$ROOTDIR"/distribution/linux/Ryujinx.desktop AppDir/Ryujinx.desktop
ln -s "$ROOTDIR"/distribution/linux/appimage/AppRun AppDir/AppRun
ln -s "$ROOTDIR"/distribution/misc/Logo.svg AppDir/Ryujinx.svg
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"