sly1/scripts/setup_build_environment.sh
2024-08-03 00:25:56 -04:00

34 lines
658 B
Bash
Executable File

#!/bin/bash
set -e
# Get script directory
script_dir=$(dirname $0)
pushd $script_dir > /dev/null
# Check if sudo
if [ "$EUID" -ne 0 ]
then echo "Installing packages requires sudo, run the script with sudo."
exit
fi
# Update packages
apt-get update
# Setup wine
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine32
# Install MIPS assembler
sudo apt-get install binutils-mips-linux-gnu
# Setup compiler
./setup_progd_linux.sh
popd > /dev/null
echo "Build environment setup complete."
echo "Next, copy the elf from your copy of the game to the 'disc' directory."
echo "Then use the 'build.sh' script to build the elf."