From 2296e24f0e3dc6259014a5e2cfb72d5f6a385a90 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 29 Dec 2020 10:48:46 -0800 Subject: [PATCH] Create update.sh --- .github/workflows/update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/update.sh diff --git a/.github/workflows/update.sh b/.github/workflows/update.sh new file mode 100644 index 000000000..530838d35 --- /dev/null +++ b/.github/workflows/update.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +zenity --question --timeout=10 --title="yuzu updater" --text="New update available. Update now?" --icon-name=yuzu --window-icon=yuzu.svg --height=80 --width=400 +answer=$? + +if [ "$answer" -eq 0 ]; then + $APPDIR/usr/bin/AppImageUpdate $PWD/yuzu-x86_64.AppImage +elif [ "$answer" -eq 1 ]; then + $APPDIR/usr/bin/yuzu +elif [ "$answer" -eq 5 ]; then + $APPDIR/usr/bin/yuzu +fi +exit 0