Skip to content

Commit

Permalink
MuseScore: update to 4.3.0
Browse files Browse the repository at this point in the history
release name changed to "MuseScore Studio"
theofficialgman committed May 10, 2024
1 parent 888f8ce commit dc879b8
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/updates/MuseScore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

webVer=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "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"
webVer=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "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-Studio-;;g' | sed 's;-aarch64.AppImage;;g')
armhf_url="https://github.com/musescore/MuseScore/releases/download/v${webVer%.*}/MuseScore-Studio-${webVer}-armv7l.AppImage"
arm64_url="https://github.com/musescore/MuseScore/releases/download/v${webVer%.*}/MuseScore-Studio-${webVer}-aarch64.AppImage"

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

version=4.2.1.240230938-experimental
version=4.3.0.241231432

if [ $arch == 32 ];then
url_arch=armv7l
@@ -17,7 +17,7 @@ fi

enable_module fuse || exit 1

wget -O "/tmp/MuseScore.AppImage" "https://github.com/musescore/MuseScore/releases/download/v${version%.*}/MuseScore-${version}-${url_arch}.AppImage" || exit 1
wget -O "/tmp/MuseScore.AppImage" "https://github.com/musescore/MuseScore/releases/download/v${version%.*}/MuseScore-Studio-${version}-${url_arch}.AppImage" || exit 1

chmod +x "/tmp/MuseScore.AppImage"

@@ -29,6 +29,8 @@ sudo /tmp/MuseScore.AppImage install || error "MuseScore.AppImage failed to run
sudo rm -f /usr/local/bin/mscore
sudo ln -s /usr/local/bin/MuseScore.AppImage /usr/local/bin/mscore

#change menu button label to 'MuseScore 4'
sudo sed -i 's/^Name=.*/Name=MuseScore 4/g' /usr/local/share/applications/org.musescore.MuseScore4portable.desktop
true #in case sed fails
#remove "Portable" from menu button
sudo sed -i 's/ Portable$//g' /usr/local/share/applications/org.musescore.MuseScore4portable.desktop
# update timestamp of top level icon directory to signal icon cache to be refreshed
sudo touch /usr/local/share/icons
true #in case touch fails

0 comments on commit dc879b8

Please sign in to comment.