1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-08-23 19:56:27 -05:00

infra: don't repackage appimages and fix zsync files (#34)

Co-authored-by: reggie <reggie@latte.to>
This commit is contained in:
Samuel
2024-10-06 15:14:04 -04:00
committed by GitHub
parent 2880892c2c
commit 51b956ac7f
3 changed files with 37 additions and 24 deletions

View File

@@ -1,14 +1,15 @@
#!/bin/sh
set -e
set -eu
ROOTDIR="$(readlink -f "$(dirname "$0")")"/../../../
cd "$ROOTDIR"
BUILDDIR=${BUILDDIR:-publish}
OUTDIR=${OUTDIR:-publish_appimage}
UFLAG=${UFLAG:-"gh-releases-zsync|ryujinx-mirror|ryujinx|latest|*-x64.AppImage.zsync"}
rm -rf AppDir
mkdir -p AppDir/usr/bin/bin
mkdir -p AppDir/usr/bin
cp distribution/linux/Ryujinx.desktop AppDir/Ryujinx.desktop
cp distribution/linux/appimage/AppRun AppDir/AppRun
@@ -22,8 +23,8 @@ chmod +x AppDir/AppRun AppDir/usr/bin/Ryujinx*
mkdir -p "$OUTDIR"
appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 21 \
-u "gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|Ryujinx|latest|*.AppImage.zsync" \
-u "$UFLAG" \
AppDir "$OUTDIR"/Ryujinx.AppImage
# ??
# Move zsync file needed for delta updates
mv ./*.AppImage.zsync "$OUTDIR"