From 0cc93af60c8d87ae42e589e5b00aacc33ad11efb Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 29 Dec 2020 10:45:46 -0800 Subject: [PATCH] Create AppRun --- .github/workflows/AppRun | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/AppRun diff --git a/.github/workflows/AppRun b/.github/workflows/AppRun new file mode 100644 index 000000000..01d3d17c0 --- /dev/null +++ b/.github/workflows/AppRun @@ -0,0 +1,12 @@ +#!/bin/bash + +mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $HOME/.local/share/icons/hicolor/scalable/apps + +GITVER=`wget -qO- https://www.github.com/pineappleEA/pineapple-src/releases/tag/continuous | grep pineappleEA/pineapple-src/commit/ | cut -d '"' -f 2 | cut -d '/' -f 5 | awk '!x[$0]++'` +APPVER=`cat $APPDIR/version.txt` + +if [ "$GITVER" = "$APPVER" ]; then + $APPDIR/usr/bin/yuzu +else + $APPDIR/update.sh +fi