Skip to content

Commit

Permalink
MuseScore: update to official 4.2.0 release
Browse files Browse the repository at this point in the history
also drop 4K pagesize requirement as this was corrected upstream by using a newer version of patchelf musescore/MuseScore#20356
  • Loading branch information
theofficialgman committed Dec 18, 2023
1 parent 04d8d2e commit 76a85fb
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions apps/MuseScore/install
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,14 @@ else
error "Failed to detect OS CPU architecture! Something is very wrong."
fi

PAGE_SIZE="$(getconf PAGE_SIZE)"
if [[ "$PAGE_SIZE" == "16384" ]]; then
#switch to 4K pagesize kernel
if [ -f /boot/config.txt ]; then
text="Raspberry Pi 5 PiOS images ship by default with a 16K PageSize Linux Kernel.
This kernel causes incompatibilities with some software including MuseScore https://github.com/raspberrypi/bookworm-feedback/issues/107
Would you like to automatically switch to a 4K PageSize Linux Kernel?"
userinput_func "$text" "No, keep 16K PageSize Kernel and Exit" "Yes, switch to 4K PageSize Kernel"
if [ "$output" == "No, keep 16K PageSize Kernel and Exit" ]; then
error "User error: Your current running kernel is built with 16K PageSize and is incompatible with MuseScore. You must switch to a 4K PageSize kernel (and chose to not do so automatically) before installing MuseScore."
fi
echo "" | sudo tee --append /boot/config.txt >/dev/null
echo "[pi5]" | sudo tee --append /boot/config.txt >/dev/null
echo "kernel=kernel8.img" | sudo tee --append /boot/config.txt >/dev/null
echo -e "The 4K PageSize Kernel has been enabled by adding 'kernel=kernel8.img' to /boot/config.txt\nPlease reboot now and install the MuseScore app again."
sleep infinity
else
error "User error (reporting allowed): Your current running kernel is built with 16K PageSize and is incompatible with MuseScore. Changing kernels automatically cannot be done since no /boot/config.txt file was found."
fi
fi

if package_installed musescore ;then
status "First removing musescore package with APT..."
sudo apt purge musescore -y --autoremove || exit 1
fi

enable_module fuse || exit 1

wget -O "/tmp/MuseScore.AppImage" "https://github.com/Pi-Apps-Coders/files/releases/download/large-files/MuseScore-4.1.1.233220526-${url_arch}.AppImage" || exit 1
wget -O "/tmp/MuseScore.AppImage" "https://github.com/musescore/MuseScore/releases/download/v4.2.0/MuseScore-4.2.0.233521126-experimental-${url_arch}.AppImage" || exit 1

chmod +x "/tmp/MuseScore.AppImage"

Expand Down

0 comments on commit 76a85fb

Please sign in to comment.