Skip to content

Commit

Permalink
MuseScore: switch to separate armhf and arm64 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Jun 18, 2024
1 parent b754b41 commit 47fe721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/updates/MuseScore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/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-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"
version_armhf=$(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 armv7l.AppImage$ | sed 's;https://github.com/musescore/MuseScore/releases/download/v'.*'/MuseScore-Studio-;;g' | sed 's;-armv7l.AppImage;;g')
version_arm64=$(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${version_armhf%.*}/MuseScore-Studio-${version_armhf}-armv7l.AppImage"
arm64_url="https://github.com/musescore/MuseScore/releases/download/v${version_arm64%.*}/MuseScore-Studio-${version_arm64}-aarch64.AppImage"

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

version=4.3.1.241490902
version_armhf=4.3.1.241490902
version_arm64=4.3.1.241490902

if [ $arch == 32 ];then
version_select="$version_armhf"
url_arch=armv7l
elif [ $arch == 64 ];then
version_select="$version_arm64"
url_arch=aarch64
else
error "Failed to detect OS CPU architecture! Something is very wrong."
Expand All @@ -17,7 +20,7 @@ fi

enable_module fuse || exit 1

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

chmod +x "/tmp/MuseScore.AppImage"

Expand Down

0 comments on commit 47fe721

Please sign in to comment.