Skip to content

Instantly share code, notes, and snippets.

@bunkbail
Created May 7, 2023 12:14
Show Gist options
  • Select an option

  • Save bunkbail/28edf0d0dd30a59a9a6726b36699b710 to your computer and use it in GitHub Desktop.

Select an option

Save bunkbail/28edf0d0dd30a59a9a6726b36699b710 to your computer and use it in GitHub Desktop.
#!/bin/bash
REPO="pineappleEA/pineapple-src"
LOCATION=$(curl -s https://api.github.com/repos/$REPO/releases/latest \
| grep "browser_download_url" \
| awk '{print substr($2, 2, length($2)-2)}' \
| grep "Linux-Yuzu-EA" )
FILENAME=$(basename $LOCATION)
if [ ! -f $(basename $FILENAME .AppImage) ]; then
aria2c -x 16 -o $FILENAME $LOCATION
chmod +x $FILENAME
./$FILENAME --appimage-extract
cp squashfs-root/usr/bin/yuzu $(basename $FILENAME .AppImage)
rm -rf squashfs-root
upx --lzma $(basename $FILENAME .AppImage)
rm $FILENAME
fi
echo "You now have the latest version of Yuzu EA"
@bunkbail

bunkbail commented May 7, 2023

Copy link
Copy Markdown
Author

you need to have curl, aria2c and upx to use this script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment