Add ws-scrcpy-launcher.py

also fix pineapple portable launcher not being able to update.
This commit is contained in:
2022-02-02 14:01:23 +07:00
parent 1ec9ab46a8
commit befc7a867f
6 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#!/usr/bin/bash
AUTHOR="tretrauit"
FAKE_APPRUN_SCRIPT='#!/usr/bin/bash
echo "Starting Yuzu..."
"$APPDIR"/usr/bin/yuzu'
echo "pinEApple/Yuzu EA AppImage portable mode launcher by $AUTHOR"
echo "Removing old yuzu folder..."
rm -rf ./squashfs-root
echo "Extracting AppImage..."
./yuzu-x86_64.AppImage --appimage-extract
cd ./squashfs-root/
echo "Patching..."
ln -sf ../user/ ./user
mv ./AppRun-patched ./AppRun-patched.bak
echo "$FAKE_APPRUN_SCRIPT" > ./AppRun-patched
chmod +x ./AppRun-patched
echo "Launching yuzu..."
APPDIR=./ ./AppRun