From 30411404f16155e0727418a53d5f7aeed6e78d41 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 2 Feb 2021 14:21:01 -0800 Subject: [PATCH] Write version number Copy version number to version.txt in AppImage --- .github/workflows/appimage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/appimage.sh b/.github/workflows/appimage.sh index 3d88d4fc2..57e7c6cba 100644 --- a/.github/workflows/appimage.sh +++ b/.github/workflows/appimage.sh @@ -36,7 +36,8 @@ chmod a+x ./squashfs-root/runtime chmod a+x ./squashfs-root/update.sh #cp /tmp/libssl.so.47 /tmp/libcrypto.so.45 /usr/lib/x86_64-linux-gnu/ -echo $GITHUB_SHA > $HOME/squashfs-root/version.txt +version=$(cat /yuzu/README.md | grep -o 'early-access [[:digit:]]*' | cut -c 14-17) +echo EA-$version > $HOME/squashfs-root/version.txt unset QT_PLUGIN_PATH unset LD_LIBRARY_PATH @@ -55,7 +56,6 @@ export PATH=$(readlink -f /tmp/squashfs-root/usr/bin/):$PATH mkdir $HOME/squashfs-root/dist/ cp /yuzu/dist/yuzu.ico $HOME/squashfs-root/dist/ /tmp/squashfs-root/usr/bin/appimagetool $HOME/squashfs-root -version=$(cat /yuzu/README.md | grep -o 'early-access [[:digit:]]*' | cut -c 14-17) mv ./yuzu-x86_64.AppImage /yuzu/artifacts/version/Yuzu-EA-$version.AppImage # Continuous AppImage