Skip to main content
This guide makes an installer for a game made with Godot or Unity. Export or build the game for Windows first; Bach packages the folder you get.

Godot

  1. In Godot, export your game with a Windows Desktop preset into a folder of its own, for example export/win.
  2. In the project folder, run bach init.
Bach reads the game’s name and version from project.godot, and the export path from your Windows preset. Without a preset it guesses build.
bach.toml
Godot doesn’t store a studio name, so publisher is the game’s name until you change it. Make sure the .pck file next to the program is in the list that bach check prints. The game won’t run without it.

Unity

  1. Build your game for Windows into a folder called Build at the top of your project.
  2. In the project folder, run bach init.
Bach reads the product name, company and version from your player settings.
bach.toml
The two DoNotShip patterns keep out folders Unity creates for debugging.

Check and build

Saved games

Your game probably saves files in the user’s profile. The uninstaller leaves them alone unless you list the folder and the user ticks the box to delete it:
bach.toml
See Uninstalling and user data.

Make the installer look like a game

Bach has built-in styles made for games. List them and try one without changing your config:
Set your choice with style under [installer]. See Customize the install window.

Large games

  • Optional parts such as high-resolution textures can be components, and even downloaded only when the user ticks them.
  • Updates can send only the files that changed. See Patches and staged rollouts.