Games for computers
Tick Windows, macOS or Linux in the Build window, and your game comes out as a program of its own: your game’s name, your icon, and nothing for the player to install first. They don’t need CrashPlayer, or to know what Crash BASIC is.
What you need
Each build compiles a small player just for your game, holding the secret its cart is sealed with, so that player plays your game and nothing else. Compiling needs Rust, which is free: install it from rustup.rs. Without it, the Build window says so in red and won’t build for computers (phones and the web don’t need it).
You can build for all three from any one of them: Windows and Linux from a Mac, a Mac game from Windows, and so on. Building for another kind of computer needs a few extra tools, and the build installs them itself the first time, saying what it’s doing. If one can’t be installed that way, it says what to install by hand. What you need to build lists them all, and how to install them yourself if you’d rather.
Crash-tan’s Tip: The first build for each platform takes a while, because there’s a lot to fetch. After that, a build takes seconds.
What you get
Each platform gets its own place in the Into folder:
| Platform | What’s made | How it’s played |
|---|---|---|
| Windows | a folder, yourgame-windows | double-click Your Game.exe |
| macOS | Your Game.app | double-click it |
| Linux | a folder, yourgame-linux | run Your Game |
The Windows and Linux folders hold the program, the engine beside it
(crashcore_ffi.dll or libcrashcore_ffi.so), your game’s cart, and its
licence notes. Give people the whole folder, zipped up: the program
won’t start without the files beside it. A Mac app is all one piece
already. Zip it too, so it survives being downloaded.
The Linux folder also has a .desktop file, which puts your game in the
applications menu if a player copies it to ~/.local/share/applications.
Macs and signatures
A Mac only opens apps that are signed, and only opens downloaded ones whose signer Apple knows.
- With macOS signing left empty, the app is signed “ad hoc”: it opens on the Mac that built it, for trying out, but a Mac that downloads it will refuse it.
- To give a Mac game away, you need an Apple Developer account and its
Developer ID Application certificate in your keychain. Type its name
into macOS signing (it reads like
Developer ID Application: Your Name (TEAMID)) and the app is signed with it. - Then Apple has to notarize it, which means checking it over and
vouching for it. That’s done with Apple’s own
notarytool, after the build. The README beside the app says how.
A Mac app built on Windows or Linux comes out unsigned, because only a Mac can sign one. Before it’ll open, run these on a Mac, once:
chmod +x "Your Game.app/Contents/MacOS/Your Game"
xattr -dr com.apple.quarantine "Your Game.app"
codesign --force --deep --sign - "Your Game.app"
Windows warnings
A Windows program from someone Windows doesn’t know shows a blue “Windows protected your PC” box the first time. Players can click More info, then Run anyway. To stop it appearing, a program has to be signed with a code signing certificate, which you buy; the IDE doesn’t sign Windows programs yet.
Where to share it
Zip each platform’s folder (or the app) and put it anywhere people download games: itch.io takes a download for each platform beside a web version, and so do the bigger stores.
Crash-tan’s Tip: Try the game from the zip, on a computer that’s never seen it, before telling anyone where it is. It’s the only way to know you’ve zipped everything it needs.