Skip to content

Commit

Permalink
Minecraft Bedrock: fix t64 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed May 8, 2024
1 parent 4e7e898 commit b6741be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions apps/Minecraft Bedrock/install-32
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#!/bin/bash

# Get dependencies
install_packages libx11-6 libxext6 libegl1 zlib1g libstdc++6 libgl1-mesa-dri libasound2 libcom-err2 libgmp10 libp11-kit0 || exit 1
bedrock_depends=()
if package_available libasound2t64; then
bedrock_depends+=('libasound2t64')
else
bedrock_depends+=('libasound2')
fi
install_packages ${bedrock_depends[@]} libx11-6 libxext6 libegl1 zlib1g libstdc++6 libgl1-mesa-dri libcom-err2 libgmp10 libp11-kit0 || exit 1

#Download file
mkdir -p ~/.local/bin || error "Could not make directory"
if package_is_new_enough libc6 2.36 ;then
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.12.1-763/Minecraft_Bedrock_Launcher-bookworm-armhf-v0.12.1.763.AppImage' || error "failed to download Minecraft Bedrock Launcher"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.14.2-792/Minecraft_Bedrock_Launcher-bookworm-armhf-v0.14.2.792.AppImage' || error "failed to download Minecraft Bedrock Launcher"
else
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.12.1-763/Minecraft_Bedrock_Launcher-armhf-v0.12.1.763.AppImage' || error "failed to download Minecraft Bedrock Launcher"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.14.2-792/Minecraft_Bedrock_Launcher-armhf-v0.14.2.792.AppImage' || error "failed to download Minecraft Bedrock Launcher"
fi
chmod +x ~/.local/bin/MCBedrock.AppImage

Expand Down
12 changes: 9 additions & 3 deletions apps/Minecraft Bedrock/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@
get_model &>/dev/null
if [[ -z "$jetson_model" ]] && [ ! -z "$__cpu_op_mode_32" ]; then
sudo dpkg --add-architecture armhf
install_packages libx11-6:armhf libxext6:armhf libegl1:armhf zlib1g:armhf libstdc++6:armhf libgl1-mesa-dri:armhf libasound2:armhf libpulse0:armhf libcom-err2:armhf libgmp10:armhf libp11-kit0:armhf libsystemd0:armhf || exit 1
bedrock_depends=()
if package_available libasound2t64:armhf; then
bedrock_depends+=('libasound2t64:armhf')
else
bedrock_depends+=('libasound2:armhf')
fi
install_packages ${bedrock_depends[@]} libx11-6:armhf libxext6:armhf libegl1:armhf zlib1g:armhf libstdc++6:armhf libgl1-mesa-dri:armhf libpulse0:armhf libcom-err2:armhf libgmp10:armhf libp11-kit0:armhf libsystemd0:armhf || exit 1
else
warning "Your system is only capable of running the ARM64 versions of Minecraft Bedrock. You will be unable to run older ARM32 versions of Minecraft Bedrock that you may find in this launcher."
fi

#Download file
mkdir -p ~/.local/bin || error "Could not make directory"
if package_is_new_enough libc6 2.36 ;then
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.12.1-763/Minecraft_Bedrock_Launcher-bookworm-arm64-v0.12.1.763.AppImage' || error "failed to download Minecraft Bedrock Launcher"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.14.2-792/Minecraft_Bedrock_Launcher-bookworm-arm64-v0.14.2.792.AppImage' || error "failed to download Minecraft Bedrock Launcher"
else
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.12.1-763/Minecraft_Bedrock_Launcher-arm64-v0.12.1.763.AppImage' || error "failed to download Minecraft Bedrock Launcher"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.14.2-792/Minecraft_Bedrock_Launcher-arm64-v0.14.2.792.AppImage' || error "failed to download Minecraft Bedrock Launcher"
fi
chmod +x ~/.local/bin/MCBedrock.AppImage

Expand Down

0 comments on commit b6741be

Please sign in to comment.