Karmen and I roleplay together. Dogs, cats, gems, whatever we're into that month. I build the systems we play in, and for a long time "sharing" one meant sending her a zip and a paragraph of instructions.

This month I got tired of that and decided to find out how real software gets onto someone else's computer. I have not had this much fun in ages.

Installers

The Warrior Codex is the app our cat game runs in. Its player app now has a proper Windows installer: a welcome page, Next, Finish, done. What I learned making it:

I've made installers for three other things too: a notepad, a read-aloud app, and a Discord backup tool. The Python ones taught me a different lesson. The installer has to find or bring its own Python, and for the read-aloud app it picks the GPU or CPU version of the voice engine by itself. That one stays a folder and not a single exe, because the exe would be three or four gigabytes.

Updates that install themselves

Next I wanted to stop sending new copies at all. The player app checks a releases page on GitHub when it opens, downloads a new version in the background, and asks to restart. To do that I learned to keep two repos: a private one with the code, and a public one that holds nothing but the finished downloads.

I also learned that an app can't replace its own exe while it's running. Clack Attack taught me that the hard way. My first updater closed the app and then did nothing, because the little script meant to do the swap quit the instant it started. One version later it works, and anyone on the broken version had to download the fix by hand. Sorry about that.

The patcher

An updater is no help to someone whose copy is too old to have one. So there's a patcher: one exe, one big button. It says Install if you don't have the app, Update if you're behind, and Open if you're current. It carries an installer inside it so it works with no internet, and it can put an older version back if a new one misbehaves.

Then I did the same for my own side. Rebuilding everything used to mean a terminal full of scrolling text. Now it's a window with the dog, a progress bar, and the steps ticked off as they finish.

Everything else that came along

Why I'm this excited

The cat game went from version 1.2 to 6.25 in eight days. That is a silly number and I'm proud of it anyway.

What I like most is that none of this was the plan. I wanted to play pretend with Karmen and not have to say "okay, now unzip it, no, the other folder." Every skill on this page came from wanting that one thing to be easier. Now she double-clicks and the game opens.

Next I want to learn code signing, so Windows stops calling me an unknown publisher.