diff --git a/README.md b/README.md index 98fc10d..05f7a18 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,17 @@ ##### Unix-like `$ git clone --recurse-submodules https://github.com/jdah/minecraft-weekend.git`\ + `$ make` +to comepile this game just run requirements.sh to install the requirements and comepile this game, this script only work for debian and ubuntu base distro. + +` $ cd minecraft-weekend` + +` $ chmod +x requirements.sh ` + +` $ sudo ./requirements.sh ` + The following static libraries under `lib/` must be built before the main project can be built: - GLAD `lib/glad/src/glad.o` diff --git a/requirements.sh b/requirements.sh new file mode 100644 index 0000000..46865a2 --- /dev/null +++ b/requirements.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +#requirement for Debain and Ubuntu only + +echo "installing" + +# all this should be in the other distro repo i don't know +# this command will install everything it need to comepile minecraft in C + +sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison + +sudo apt-get install cmake +sudo apt-get install libxi-dev + +sudo apt-get install libxcursor-dev +sudo apt-get install libxinerama-dev + +sudo apt-get install libxrandr-dev + +make -j3 + +echo "Done"