From dc879b8084cedb5fa1655c5b1fa682ff403e2df0 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Thu, 9 May 2024 23:27:00 -0400 Subject: [PATCH] MuseScore: update to 4.3.0 release name changed to "MuseScore Studio" --- .github/workflows/updates/MuseScore.sh | 6 +++--- apps/MuseScore/install | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/updates/MuseScore.sh b/.github/workflows/updates/MuseScore.sh index f4570f7f6d..7a0d5a743f 100755 --- a/.github/workflows/updates/MuseScore.sh +++ b/.github/workflows/updates/MuseScore.sh @@ -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 diff --git a/apps/MuseScore/install b/apps/MuseScore/install index 5f6c6b9b03..14b92e0942 100755 --- a/apps/MuseScore/install +++ b/apps/MuseScore/install @@ -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