Versions
A game says which Saturn it uses in a .saturn-version file at the top of its project folder, holding one line such as v0.5.0. The installed saturn runs that version.
Moving a game to a newer Saturn
Section titled “Moving a game to a newer Saturn”Run saturn pin v0.6.0 (with a version that exists) and ship the changed .saturn-version. Each person’s next command downloads it.
What the installed program does
Section titled “What the installed program does”- It looks for
.saturn-versionin the folder it is run in, and then in each folder above. Without one it runs itself, and in a terminal reminds you to pin. - When the file names another version, it runs
~/.saturn/cli/<version>/(downloaded on first use for this computer: Windows x64, macOS Apple silicon or Intel, Linux x64) with the same arguments, input and output, and exits with its exit code. A game run as an MCP server gets nothing extra on stdout. - After the first download it works without a connection.
- If the download fails, it says so and why. A 404 means that version is not on the download address, so the pin has to move to one that is.
saturn pinis the one command that always runs the installed program, since it is about the installed one.
The window runs the Saturn it was built from, whatever the file says.
Where it finds Git
Section titled “Where it finds Git”Saturn finds git and git-lfs on the PATH first, then where they are usually installed, which a program started from the desktop may not have on its PATH (Homebrew’s folders on a Mac, Git for Windows’ on Windows), and last in ~/.saturn/tools/bin, where the window’s Setup puts Git LFS.
The first download of a version uses curl, so it goes through the computer’s own certificates and proxy settings. install.sh needs it too.