You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Botspot-Pi-Apps/apps/Minecraft Bedrock/install

19 lines
546 B
Plaintext

#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
function error {
echo -e "\\e[31m$1\\e[39m"
exit 1
}
# Get dependencies
"${DIRECTORY}/pkg-install" "flatpak" "$(dirname "$0")" || exit 1
#Add flathub as a source
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
#Install through flatpak
flatpak install -y flathub io.mrarm.mcpelauncher || error 'Failed to install launcher!'
read -p 'You must reboot for the new Minecraft Bedrock menu launcher to appear. Press Enter to close.'