Pretty classic Minesweeper. Web Demo deployed here!
This uses only SDL2 and extension libraries SDL_image, SDL_ttf, and SDL_mixer.
Built with CMake (unfortunately).
Install the appropriate auto-built binary from latest release.
For Windows: Run the .msi installer. You may need to get past Windows Defender.
For MacOS: Use the .dmg package and do that weird Drag and Drop into Applications thing you do. The first time you go to open it right click -> Open -> Open.
For RPM/DEB distros: Install the appropriate .rpm or .deb with your package manager (It should install dependencies).
Other Unix: Build from source. See below.
- Install SDL2 (minimum version 2.0.18), SDL_image, SDL_ttf, and SDL_mixer development packages (and basic build tools).
sudo dnf install SDL2-devel SDL2_image-devel SDL2_ttf-devel SDL2_mixer-devel cmake
MacOS Homebrew:
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer cmake
sudo apt install libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev cmake
- Build source code
git clone https://github.com/ruuzia/minesector.git
cd minesector
./configure
make -j
./configure is currently equivalent to running cmake -DCMAKE_BUILD_TYPE=Release
. To specify an installation location, set -DCMAKE_INSTALL_PREFIX in the configure step:
./configure -DCMAKE_INSTALL_PREFIX=./build
The -j
argument to make
just tells make to run in parallel and is not required.
./configure may issue warnings on some distros like Ubuntu about not finding cmake configuration files for SDL2_ttf, SDL2_image, and SDL2_mixer but it should still work.
- Install
On MacOS, CMake builds a .app package. Run it with:
open MineSector.app
To install, run cpack to build a .dmg Drag and Drop.
cpack
open minesector.dmg
sudo make install
To run the program without make install
, you must set the MINERUNTIME environment variable to the source directory to tell MineSector where to find the assets. Inside the git repo:
MINERUNTIME="" ./minesector