Skip to content

Commit

Permalink
Minecraft Bedrock: use bookworm appimages where possible
Browse files Browse the repository at this point in the history
check libc6 package version and use bookworm image if greater than or equal to 2.36 (bookworm+/lunar+)

resolves #2463
  • Loading branch information
theofficialgman committed Nov 21, 2023
1 parent c26d8b0 commit 2cc4c4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions apps/Minecraft Bedrock/install-32
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash

# Get dependencies
install_packages curl libx11-6 libxext6 libegl1 zlib1g libstdc++6 libgl1-mesa-dri libasound2 libcom-err2 libgmp10 libp11-kit0 || exit 1
install_packages libx11-6 libxext6 libegl1 zlib1g libstdc++6 libgl1-mesa-dri libasound2 libcom-err2 libgmp10 libp11-kit0 || exit 1

#Download file
mkdir -p ~/.local/bin || error "Could not make directory"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.10.0-716/Minecraft_Bedrock_Launcher-armhf-v0.10.0.716.AppImage' || error "failed to download Minecraft Bedrock Launcher"
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"
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"
fi
chmod +x ~/.local/bin/MCBedrock.AppImage

enable_module fuse || exit 1
Expand Down
8 changes: 6 additions & 2 deletions apps/Minecraft Bedrock/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
get_model &>/dev/null
if [[ -z "$jetson_model" ]]; then
sudo dpkg --add-architecture armhf
install_packages curl 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
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
fi

#Download file
mkdir -p ~/.local/bin || error "Could not make directory"
wget -O ~/.local/bin/MCBedrock.AppImage 'https://github.com/minecraft-linux/appimage-builder/releases/download/v0.10.0-716/Minecraft_Bedrock_Launcher-arm64-v0.10.0.716.AppImage' || error "failed to download Minecraft Bedrock Launcher"
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"
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"
fi
chmod +x ~/.local/bin/MCBedrock.AppImage

enable_module fuse || exit 1
Expand Down

0 comments on commit 2cc4c4f

Please sign in to comment.