TheBrokenRail
a85fc1f5fa
All checks were successful
minecraft-pi-reborn/pipeline/head This commit looks good
50 lines
1.0 KiB
Bash
Executable File
50 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# This Script Assumes An x86_64 Host
|
|
if [ "$(uname -m)" != "x86_64" ]; then
|
|
echo 'Invalid Build Architecture'
|
|
exit 1
|
|
fi
|
|
|
|
# Add ARM Repository
|
|
if [ ! -z "${ARM_PACKAGES_SUPPORTED}" ]; then
|
|
sudo dpkg --add-architecture armhf
|
|
sudo dpkg --add-architecture arm64
|
|
fi
|
|
|
|
# Update APT
|
|
sudo apt-get update
|
|
sudo apt-get dist-upgrade -y
|
|
|
|
# Install
|
|
sudo apt-get install --no-install-recommends -y \
|
|
ca-certificates \
|
|
lsb-release \
|
|
dpkg-dev \
|
|
git \
|
|
clang \
|
|
lld \
|
|
cmake \
|
|
make \
|
|
libglfw3 libglfw3-dev \
|
|
libfreeimage3 libfreeimage-dev \
|
|
crossbuild-essential-armhf \
|
|
gcc g++ \
|
|
libopenal-dev \
|
|
qemu-user
|
|
|
|
# Install ARM Dependencies
|
|
if [ ! -z "${ARM_PACKAGES_SUPPORTED}" ]; then
|
|
sudo apt-get install --no-install-recommends -y \
|
|
libglfw3:armhf libglfw3-dev:armhf \
|
|
libfreeimage3:armhf \
|
|
libopenal-dev:armhf \
|
|
libglfw3:arm64 libglfw3-dev:arm64 \
|
|
libfreeimage3:arm64 \
|
|
libopenal-dev:arm64 \
|
|
crossbuild-essential-arm64
|
|
fi
|
|
|