-
Clone the repository:
git clone https://github.com/agerber/asteroids_cpp.git cd asteroids_cpp -
Make build scripts executable:
chmod +x build.sh chmod +x build_mac.sh # for mac chmod +x build_linux.sh # for linux
-
Clean the build dir.
# Check if the build directory exists
if [ -d "build" ]; then
echo "Deleting the build directory..."
rm -rf build
echo "Build directory deleted."
else
echo "Build directory does not exist."
fi
- Run the build script:
- macOS:
./build_mac.sh
- Linux:
./build_linux.sh
- macOS:
- Execute the executable:
build/asteroid