forked from Ryubing/Ryujinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
CURRENTDIR="$(readlink -f "$(dirname "$0")")" | ||
exec "$CURRENTDIR"/usr/bin/Ryujinx.sh "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
ROOTDIR="$(readlink -f "$(dirname "$0")")"/../../../ | ||
cd "$ROOTDIR" | ||
|
||
BUILDDIR=${BUILDDIR:-publish} | ||
OUTDIR=${OUTDIR:-publish_appimage} | ||
UFLAG=${UFLAG:-"gh-releases-zsync|GreemDev|ryujinx|latest|*-x64.AppImage.zsync"} | ||
|
||
rm -rf AppDir | ||
mkdir -p AppDir/usr/bin | ||
|
||
cp distribution/linux/Ryujinx.desktop AppDir/Ryujinx.desktop | ||
cp distribution/linux/appimage/AppRun AppDir/AppRun | ||
cp src/Ryujinx.UI.Common/Resources/Logo_Ryujinx.png AppDir/Ryujinx.svg | ||
|
||
|
||
cp -r "$BUILDDIR"/* AppDir/usr/bin/ | ||
|
||
# Ensure necessary bins are set as executable | ||
chmod +x AppDir/AppRun AppDir/usr/bin/Ryujinx* | ||
|
||
mkdir -p "$OUTDIR" | ||
|
||
appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 21 \ | ||
-u "$UFLAG" \ | ||
AppDir "$OUTDIR"/Ryujinx.AppImage | ||
|
||
# Move zsync file needed for delta updates | ||
if [ "$RELEASE" = "1" ]; then | ||
mv ./*.AppImage.zsync "$OUTDIR" | ||
fi |