mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2024-11-10 06:00:12 +00:00
Add UltimMC Raspberry Pi scripts
These scripts automatically compile and set up UltimMC (a Minecraft launcher) on the Raspberry Pi 4
This commit is contained in:
parent
f8f6f2be76
commit
865ea5f02b
35
build-ultimmc-rpi4-aarch64.sh
Normal file
35
build-ultimmc-rpi4-aarch64.sh
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "UltimMC installer for Raspberry Pi (64 bit)"
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
echo "Updating package definitions..."
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
|
||||||
|
echo "Installing dependencies"
|
||||||
|
|
||||||
|
sudo apt install build-essential libopenal1 x11-xserver-utils subversion git clang cmake curl zlib1g-dev openjdk-11-jdk qtbase5-dev mesa-utils
|
||||||
|
|
||||||
|
echo "Cloning source code..."
|
||||||
|
|
||||||
|
cd "$HOME"
|
||||||
|
|
||||||
|
git clone --recursive https://github.com/UltimMC/Launcher UltimMC
|
||||||
|
|
||||||
|
cd UltimMC
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
echo "Generating Makefiles..."
|
||||||
|
|
||||||
|
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DJAVA_HOME='/usr/lib/jvm/java-11-openjdk-arm64' -DLauncher_META_URL:STRING="https://raw.githubusercontent.com/theofficialgman/meta-multimc/master-clean/index.json" ..
|
||||||
|
|
||||||
|
echo "Compiling UltimMC..."
|
||||||
|
|
||||||
|
make -j$(nproc) install
|
||||||
|
|
||||||
|
echo "Installation is complete. Please download and extract an aarch64 java 8 jre tarball from https://adoptium.net/en-GB/marketplace/"
|
35
build-ultimmc-rpi4-armhf.sh
Normal file
35
build-ultimmc-rpi4-armhf.sh
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "UltimMC installer for Raspberry Pi (32 bit)"
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
echo "Updating package definitions..."
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
|
||||||
|
echo "Installing dependencies"
|
||||||
|
|
||||||
|
sudo apt install build-essential libopenal1 x11-xserver-utils subversion git clang cmake curl zlib1g-dev openjdk-11-jdk qtbase5-dev mesa-utils
|
||||||
|
|
||||||
|
echo "Cloning source code..."
|
||||||
|
|
||||||
|
cd "$HOME"
|
||||||
|
|
||||||
|
git clone --recursive https://github.com/UltimMC/Launcher UltimMC
|
||||||
|
|
||||||
|
cd UltimMC
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
echo "Generating Makefiles..."
|
||||||
|
|
||||||
|
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DJAVA_HOME='/usr/lib/jvm/java-11-openjdk-armhf' -DLauncher_META_URL:STRING="https://raw.githubusercontent.com/theofficialgman/meta-multimc/master-clean-arm32/index.json" ..
|
||||||
|
|
||||||
|
echo "Compiling UltimMC..."
|
||||||
|
|
||||||
|
make -j$(nproc) install
|
||||||
|
|
||||||
|
echo "Installation is complete. Please download and extract an ARM java 8 jre tarball from https://adoptium.net/en-GB/marketplace/"
|
Loading…
Reference in New Issue
Block a user