commit
2e0deb5e50
3 changed files with 14 additions and 6 deletions
5
.github/workflows/AppRun
vendored
5
.github/workflows/AppRun
vendored
|
@ -7,8 +7,11 @@ mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $
|
|||
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
|
||||
if [[ -z "$GITVER" ]]; then
|
||||
$APPDIR/usr/bin/yuzu
|
||||
elif [ "$GITVER" = "$APPVER" ]; then
|
||||
$APPDIR/usr/bin/yuzu
|
||||
else
|
||||
$APPDIR/update.sh
|
||||
fi
|
||||
|
||||
|
|
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -12,14 +12,19 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Prepare ccache timestamp
|
||||
id: ccache_cache_timestamp
|
||||
shell: cmake -P {0}
|
||||
run: |
|
||||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
|
||||
message("::set-output name=timestamp::${current_date}")
|
||||
- name: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: $HOME/.ccache
|
||||
key: build-ccache
|
||||
path: ~/.ccache
|
||||
key: build-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
|
||||
restore-keys: |
|
||||
build-ccache
|
||||
build-ccache-
|
||||
- name: Build binary
|
||||
run: |
|
||||
mkdir -p "$HOME/.ccache"
|
||||
|
|
2
.github/workflows/update.sh
vendored
2
.github/workflows/update.sh
vendored
|
@ -6,7 +6,7 @@ zenity --question --timeout=10 --title="yuzu updater" --text="New update availab
|
|||
answer=$?
|
||||
|
||||
if [ "$answer" -eq 0 ]; then
|
||||
$APPDIR/usr/bin/AppImageUpdate $PWD/yuzu-x86_64.AppImage
|
||||
$APPDIR/usr/bin/AppImageUpdate $PWD/yuzu-x86_64.AppImage && $PWD/yuzu-x86_64.AppImage
|
||||
elif [ "$answer" -eq 1 ]; then
|
||||
$APPDIR/usr/bin/yuzu
|
||||
elif [ "$answer" -eq 5 ]; then
|
||||
|
|
Loading…
Reference in a new issue