System Syzygy is a puzzle game, in the style of Cliff Johnson's The Fool's Errand and 3 in Three, and of Andrew Plotkin's System's Twilight.
https://mdsteele.games/syzygy/
System Syzygy is licensed under the GNU GPL, version 3. System Syzygy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
System Syzygy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The complete license can be found in the LICENSE file.
To compile and run the game without having to install a release package, run:
$ cargo run --release
(Building/running in release mode is highly recommended for playing the game; the non-release build enables some otherwise-distracting features intended for development/debugging, and also there's one particular late-game puzzle that runs quite slowly in debug mode.)
Alternatively, if you want to invoke the built binary directly, use the
SYZYGY_DATA_DIR
environment variable to tell the game where to find its
resource files, e.g.:
$ cargo build --release
$ SYZYGY_DATA_DIR="${PWD}/data" ./target/release/syzygy
The below instructions are for reference purposes. To install a pre-built release package, visit https://mdsteele.games/syzygy/download/
-
Install the SDL2 framework under
/Library/Frameworks/
. -
Install
cargo-bundle
(version 0.4.0 or later). -
Run
cargo bundle --release
. -
Fix the binary's rpath:
$ install_name_tool -add_rpath "@executable_path/../Frameworks" \ target/release/bundle/osx/System\ Syzygy.app/Contents/MacOS/syzygy
-
Strip the binary:
$ strip target/release/bundle/osx/System\ Syzygy.app/Contents/MacOS/syzygy
-
(Optional) Remove i386 architecture from the bundled SDL2 framework:
$ BUNDLE="target/release/bundle/osx/System Syzygy.app"; \ FILE="${BUNDLE}/Contents/Frameworks/SDL2.framework/Versions/A/SDL2"; \ lipo "${FILE}" -remove i386 -output "${FILE}"
-
(Optional) Sign the app bundle:
$ codesign --deep --force --verbose \ --sign "3rd Party Mac Developer Application" \ --entitlements "data/osx/entitlements.plist" \ target/release/bundle/osx/System\ Syzygy.app $ codesign --verify -vvvv target/release/bundle/osx/System\ Syzygy.app
-
(Optional) Create signed installer package:
$ productbuild --component "target/release/bundle/osx/System Syzygy.app" \ /Applications --sign "3rd Party Mac Developer Installer" \ "target/release/bundle/osx/System Syzygy.pkg"
-
Install SDL2:
$ sudo apt-get install libsdl2-dev
-
Install
cargo-bundle
(version 0.4.0 or later). -
Run
cargo build --release
. -
Strip the binary:
$ strip target/release/syzygy
-
Run
cargo bundle --release --format=deb
.
- Follow these instructions for installing SDL2 where Rust can find it.
- Run
cargo build --release
. - Copy
SDL2.dll
totarget/release/SDL2.dll
. - To create the zip archive, open
target/release/
in Windows Explorer, select bothsyzygy.exe
andSDL2.dll
, right-click, and select "Send to > Compressed (zipped) folder".