You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Botspot-Pi-Apps/apps/Box64/install-64

19 lines
707 B
Bash

#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
"${DIRECTORY}/pkg-install" "cmake make python3 gcc" "$(dirname "$0")" || exit 1
rm -rf ~/box64
git clone https://github.com/ptitSeb/box64 || error 'Failed to clone box64 repository!'
cd box64 || error 'Failed to change directory'
mkdir build; cd build; cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo || error 'Failed to run cmake in "build" directory'
make -j8 || error 'Failed to compile'
sudo make install || error 'Failed to run "sudo make install"'
sudo systemctl restart systemd-binfmt || error "Failed to restart systemd-binfmt"