Releasing
A game on Saturn Rings can be given to its players from where it is kept:
saturn ship --release liveThis ships, builds the game and puts the build on a channel. Players get it with saturn play.
Say how the game is built
Section titled “Say how the game is built”In saturn.json:
{ "release": { "public": ["live"], "targets": { "web": { "build": "make web", "output": "build/web", "launch": "index.html" }, "macos": { "build": "make mac", "output": "build/mac", "launch": "Town.app" }, "windows": { "build": "make win", "output": "build/win", "launch": "Town.exe", "args": ["--fullscreen"] } } }}A target is one of windows, macos, linux, web and any.
| Key | What it is |
|---|---|
build |
Run in the game’s folder, once when several targets share it. Can be left out |
output |
The folder the build is in afterwards: one in the game’s folder, which usually belongs in .gitignore |
launch |
The file in it to start, or a Mac’s app |
args |
What to start it with |
public |
The channels anyone can play. live when nothing is said |
What is released
Section titled “What is released”- A release is always of what
mainis: the folder has to hold that, and no more, when the build begins, and still when it ends. What others have shipped is brought in first.--releasewith nothing left to ship only releases. - Anyone can play a channel named in
public. Any other channel is for people with a key to the game, such assaturn ship --release beta. The command says which it is. - Only what Saturn’s server lacks is sent, so a build that differs little from the last one is sent in a moment. The channel moves in one step. The same build twice changes nothing.
- A build that was begun before a teammate’s is not put over it when that one is of a later ship. Nor is it when the channel was taken down, or put back, while it was being made. Releasing it again brings in what has shipped, and then it is meant.
- Players are told nothing of a build but the game’s name, when it was made and its files: not what the work in it is called.
Put a channel back
Section titled “Put a channel back”saturn undo --release liveThis puts a channel back to the build it had before, or takes it down when it had none. Who may play it stays as it is.
What a build may hold
Section titled “What a build may hold”- Links, what is run and everything inside a Mac’s app come as they were built. A file is run when it may be and looks like a program or a script: a build that was copied from a disk made for another computer may say it of every file.
- A link that leads out of the build, a name some computer cannot have, and two names that are one to some computer are refused.
- So are files that look like secrets, unless given
--force. A.pemor a.keyis looked into: a certificate or a public key is no secret. - A folder with nothing in it is no part of a build.
On a computer that has joined nothing
Section titled “On a computer that has joined nothing”One that builds the game can be given a link in SATURN_ORBIT_LINK: the key in it goes to the one game the link names.