Skip to content

Release Process

fosterbarnes edited this page Oct 30, 2026 · 2 revisions

How a version is numbered, built, and published. Publishing is done by the repo owner; this page is for maintainers and for anyone reading the scripts.

Version

  • .version/version holds X.Y.Z and is the only source of the version. Change it only with pwsh -File .scripts\bumpVersion.ps1 (patch by default; -Minor or -Major when asked). Patch 99 rolls into the next minor.
  • .version/versionTag holds a random two-word codename (for example woopCaptions), rolled on every bump. It appears only in commit subjects; the app and releases use v<version>. The word list (.res/yapBot.json) is private and gitignored, so only the owner's clone can bump.
  • The CIA's title version is the packed number X*10000 + Y*100 + Z (0.0.37 = 37). Limits: major 0-5, minor and patch 0-99. See Building for why it is packed.

Commit messages

buildNotes.txt (gitignored) holds the next commit message: line 1 is the subject, then one blank line, then the body. The subject looks like:

v0.0.37 woopCaptions [fix > FTP commands, mDNS; patch > FTP login]

Labels, in order of preference: fix, feat., patch, perf., deps., scripts, cleanup, docs, misc.. At most two segments with different labels, plain ASCII, 72 characters or fewer. The body has one block per area (ftp server:) in plain English, ending with an Under the hood: paragraph.

Scripts

Script What it does
prePush.ps1 Clean build, copies FTB.cia, FTB.3dsx, FTB.3ds, FTB.zip into publish/, and points the README download buttons at the new version
push.ps1 git add -A, commits with buildNotes.txt, pushes the current branch. -DryRun prints the commands.
pushRelease.ps1 Tags v<version>, pushes the tag, and creates the GitHub release with the publish/ files, titled and described from buildNotes.txt. -DryRun prints the commands.
agentPush.ps1 The same pipeline for an AI agent: checks the version was bumped and the message is valid, then runs prePush, push, and pushRelease

Tags are never moved or force-pushed. pushRelease.ps1 reuses an existing tag only when it already points at the current commit (a retry after a failed upload); anywhere else it stops, and the version needs a bump. It also checks that the staged CIA has this version's title version, so assets from an older build cannot ship under a new tag.

What the updater needs

The in-app updater reads https://api.github.com/repos/fosterbarnes/ftb/releases/latest. For it to work:

  • The release tag must be v<major>.<minor>.<micro>. A malformed tag shows an error instead of an update.
  • The assets must be named exactly FTB.cia and FTB.3dsx (the CIA build downloads one, the 3DSX build the other).
  • The CIA's title version must be higher than the installed one, or the console refuses it (AM 0xD8E08027).

The updater offers a release only when its tag is newer than the running version, so every published release reaches users.

Clone this wiki locally