Build scripts for mcpelauncher-thesonicmaster, The Sonic Master's fork of the Minecraft Bedrock Linux Launcher that fixes the license error. For more information about this project, visit https://mcpelauncher.thesonicmaster.net.
This project is now discontinued and these scripts are archived. Please see this notice for more information.
git clone https://github.com/TheSonicMaster/mcpelauncher-build-scripts.git
cd mcpelauncher-build-scripts
Note: Not required if building the Snap package.
./install-deps-debian.sh
Ubuntu 18.04 has some outdated software, so the above script won't satisfy all the dependencies. To satisfy the rest, run the following commands:
NOTE: DO NOT RUN THESE COMMANDS ON VERSIONS NEWER THAN 18.04. IT MAY BREAK YOUR SYSTEM
- Newer version of Clang:
sudo apt remove --autoremove clang
sudo apt install clang-10
sudo ln -sf clang-10 /usr/bin/clang
sudo ln -sf clang++-10 /usr/bin/clang++
- Newer version of CMake:
sudo apt remove --autoremove cmake
curl -LOs https://github.com/Kitware/CMake/releases/download/v3.20.5/cmake-3.20.5-linux-x86_64.tar.gz
sudo tar --no-same-owner -xf cmake-3.20.5-linux-x86_64.tar.gz -C /usr/local --strip-components=1
rm cmake-3.20.5-linux-x86_64.tar.gz
- Extra Qt package required:
sudo apt install qt5-default
This script will install and set up all the necessary dependencies for building and installing an AppImage on Ubuntu 18.04.
This should ONLY be run in a VM or docker container. Running it on a real system will cause problems. Additionally, this should ONLY be run on an Ubuntu 18.04 environment for building AppImages. Do NOT build DEB packages in an environment set up using this script; use the workarounds above instead.
Run the script with the following command:
sudo ./setup-environment-bionic.sh
You need the following software:
- Standard build tools
- alsa-lib (libasound2)
- Clang (>= 7.0.0) (or GCC but ONLY if GCC has been built WITHOUT
--enable-default-pie
) - CMake (>= 3.11)
- libcurl
- libegl (libglvnd)
- libevdev
- libpng
- libuv
- libzip
- Ninja
- OpenSSL (>= 1.1)
- Protobuf
- PulseAudio
- Qt5 development libraries (>= 5.9)
- Xorg development libraries
- zlib
Note: AppImage developers recommend building on the oldest Ubuntu version which is still supported. At the time of writing, this is Ubuntu 18.04 LTS.
./build-appimage.sh
This will produce mcpelauncher-thesonicmaster-<ver>-<arch>.AppImage
.
Execute the AppImage to run it.
./build-deb.sh
This will produce mcpelauncher-thesonicmaster_<ver>~<os-codename>_<arch>.deb
.
Install it with sudo apt install ./<filename>.deb
.
If this is your first time building a Snap package, you have to setup Snapcraft first. This only has to be done once, it can be skipped for subsequent builds:
sudo snap install --classic snapcraft
sudo snap install multipass
Now you can build the Snap package with the following command:
snapcraft
This will produce mcpelauncher-thesonicmaster_<ver>_<arch>.snap
.
Install it with sudo snap install --dangerous <filename>.snap
.