#!/bin/bash if [ ! -f /opt/suyu/AppRun ]; then SUYU_RELEASE=$(curl -Ls https://git.suyu.dev/suyu/suyu/releases.rss |awk -F '(|)' '/v/ {print $2; exit}') curl -o \ /tmp/suyu.appimage -L \ "https://git.suyu.dev/suyu/suyu/releases/download/${SUYU_RELEASE}/Suyu-Linux_x86_64.AppImage" chmod +x /tmp/suyu.appimage cd /tmp ./suyu.appimage --appimage-extract sudo mv squashfs-root /opt/suyu mkdir -p ${HOME}/.config/suyu cp /defaults/qt-config.ini ${HOME}/.config/suyu/ rm suyu.appimage fi xterm -e /opt/suyu/AppRun