A courier, a wax seal, and no front door: how my Mac app updates itself
Upgaze ships outside the App Store, so keeping it updated was my problem. Here's the setup: Sparkle, a signed update feed, and an app that never touches the network.

Quick disclaimer first. I'm not a Mac developer, at least not yet. I've been diving deeper into Swift after coming across a neat app called Clicky. It's essentially an AI bot with its own phantom cursor on your screen, and you can just chat with it. The whole thing seemed cool, and after digging deeper I found that the founder had open-sourced it, https://github.com/farzaa/clicky. Most of it turned out to be Swift, so I started the journey right there.
Honestly, learning a new language after being around JavaScript for almost a decade feels like a breath of fresh air (not that JS is any less, it's still my bread and butter). The best way I can put it: it's like new neuro-thingy connections being made when you learn something completely new. Kind of the same feeling as downloading Duolingo every year and starting a new language journey ๐ Except this time I decided to stick with it
Anyway, that's the disclaimer. I've only been learning Swift for the last 3โ4 months, so I had a decent idea of how to set things up, and I used Claude's help along the way. Treat this as field notes, not a guide from someone who's done it for ten years.
Upgaze is a teleprompter that sits in your MacBook's notch, right under the camera, so you can read a script and still look like you're making eye contact. It's a one-time purchase, and I sell it directly from https://upgaze.app instead of the Mac App Store.
That last part is the catch. Selling on the App Store is like renting a shop inside a mall. The mall handles security, deliveries, and getting new stock onto your shelves. You just show up. Selling it yourself is like opening your own little shop on the street. You get to set the rules, and you keep the whole sale, but now every delivery is your problem.
For an app, "deliveries" means updates. If I ship a bug on day one and have no way to push a fix, every person who bought Upgaze is stuck with that bug forever. So before launch, I sorted out the boring part: how a copy of Upgaze sitting on someone's Mac finds out there's a new version, and how it knows that version actually came from me.

The short version
If you close the tab after this, fine. Here's the whole setup:
- Hire a courier. Sparkle does the updating, so I don't have to.
- Put up a notice board. The update feed is just an XML file on my website.
- Seal every parcel. Each update is signed with a key only I have.
- Don't give the app a front door. It has no network access at all.
- Use a pre-flight checklist. One script builds, signs, notarises and packages every release.
1. Hire a courier, don't become one
Sparkle is the open-source framework almost every Mac app outside the App Store uses for updates. You've seen it even if you don't know the name: that little window that says "A new version is available" with release notes and an Install button.
Think of it as a courier you hire. You don't build the delivery van yourself. You tell the courier where to check for new parcels, whose seal to trust, and how often to come by. In Upgaze that's a few lines in the app's Info.plist: the feed address, the public key, and "check once a day."
In code, the whole thing is a tiny wrapper class that starts the updater and exposes one checkForUpdates() function. It's wired to the menu bar menu, the app menu, and a "Check for Updates Now" button in Settings, next to a switch that turns the daily check off.
One thing I'm glad I did: the courier only starts work if the build actually has a signing key in it. My debug builds don't, so they never ping my website while I'm working, and the tests never touch the network either.
2. Put up a notice board
Sparkle checks something called an appcast. It's basically a notice board outside the shop. Every time there's a new version, I pin up a card: the version number, where to pick up the download, how big it is, its signature, and a link to what changed.
Most people make this file with Sparkle's own tool and upload it somewhere. I went a different way. My website is a Next.js app, so /appcast.xml is just a route that builds the notice board from a TypeScript list of releases. The same list powers the changelog page, so the "what's new" link in the update window lands on the right section. One list, two places, and shipping an update is a normal git push.
3. Seal every parcel
This is the part that makes it safe. Back in the day, important letters were closed with a wax seal pressed by a ring only the sender owned. If the seal was broken, or it wasn't the right seal, you didn't trust what was inside.
Sparkle works the same way. Every update I publish is signed with a private key that lives on my Mac and in my password manager, and nowhere else. The matching public key is baked into every copy of Upgaze. Before installing anything, the courier checks the seal. Wrong seal, no install.
So even if someone took over my website and swapped the download for something nasty, installed copies would refuse it.
The flip side is scary in its own way. If I ever lose that ring, every copy of Upgaze that's already out there can never update again. There's no locksmith for this. That's why the key is backed up, and why my release docs say, in bold: restore the key, never make a new one.

4. Don't give the app a front door
This is the bit I'm proudest of. Upgaze is sandboxed, and it doesn't have the network permission at all. Your scripts stay on your Mac. No analytics, no accounts, nothing phoning home.
So how does it check for updates? Picture a house with no front door, just a mail slot. The app stays inside. Sparkle 2 comes with two small helpers, a downloader and an installer, that live in their own sandbox outside the house. The downloader goes out, reads the notice board, picks up the parcel, and passes it through the slot. The installer swaps in the new version. The app's entitlements only let it talk to those two helpers through the slot, nothing else.
And because "no network" is a promise on my website, I made it hard to break by accident. The release script inspects every finished build, and if the network permission ever sneaks in, the release fails right there.

5. Use a pre-flight checklist
Pilots don't take off on vibes. They run the same checklist every single time, because skipping one step is how things go wrong. My release works the same way. It's one command with a version and a build number, and the script:
- builds a universal app for Apple silicon and Intel
- signs it with my Developer ID and checks the signature
- sends it to Apple for notarisation and waits for the verdict
- wraps it in a DMG, signs that, and notarises it too
- seals the DMG with the update key and prints its size and signature
At the end it writes a small text file with the exact card to pin on the notice board. Copy the DMG to the website, paste the entry, push. Every copy of Upgaze sees it within a day.
One gotcha worth knowing: Sparkle doesn't care about "1.0.1". It compares the build number, and that has to go up with every release. It's like the ticket number at a deli counter. The courier only hands out a parcel with a bigger number than the one you're holding. Forget to bump it and the update quietly never shows up for anyone. That's why the script won't run unless you give it both.
The other surprise was Apple. The very first notarisation took about 40 minutes, the release script stopped partway through, and I finished version 1.0.0 by hand. Now the script keeps waiting until Apple actually says yes or no, and a dropped connection just means it asks again.

That's it
None of this is visible to anyone using Upgaze. That's the point. It's the delivery system behind the shop. But it's what lets me ship a fix on a Tuesday night and know it'll reach everyone who paid for the app, sealed and safe, without the app ever opening a door to the internet.
If you're shipping a Mac app outside the App Store, set this up before launch, not after. Ship the updater in version one, it's the only one you can't update.
Wise Coding Weekly
Weekly visual explainers of frontend concepts.