Skip to content

Commit

Permalink
MuseScore: update to 4.2.1
Browse files Browse the repository at this point in the history
also add auto-updater
  • Loading branch information
theofficialgman committed Jan 25, 2024
1 parent 64c0119 commit 875c023
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/updates/MuseScore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

webVer=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" curl -s "https://api.github.com/repos/musescore/MuseScore/releases/latest" | jq -r '.assets.[].browser_download_url' | grep aarch64.AppImage$ | sed 's;https://github.com/musescore/MuseScore/releases/download/v'.*'/MuseScore-;;g' | sed 's;-aarch64.AppImage;;g')
armhf_url="https://github.com/musescore/MuseScore/releases/download/v${webVer%.*}/MuseScore-${webVer}-armv7l.AppImage"
arm64_url="https://github.com/musescore/MuseScore/releases/download/v${webVer%.*}/MuseScore-${webVer}-aarch64.AppImage"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
4 changes: 3 additions & 1 deletion apps/MuseScore/install
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

version=4.2.1.240230938-experimental

if [ $arch == 32 ];then
url_arch=armv7l
elif [ $arch == 64 ];then
Expand All @@ -15,7 +17,7 @@ fi

enable_module fuse || exit 1

wget -O "/tmp/MuseScore.AppImage" "https://github.com/Pi-Apps-Coders/files/releases/download/large-files/MuseScore-4.2.0.233521126-${url_arch}.AppImage" || exit 1
wget -O "/tmp/MuseScore.AppImage" "https://github.com/musescore/MuseScore/releases/download/v${version%.*}/MuseScore-${version}-${url_arch}.AppImage" || exit 1

chmod +x "/tmp/MuseScore.AppImage"

Expand Down

0 comments on commit 875c023

Please sign in to comment.