Releasing a Studio build
This page shows staff how to publish a new version of Noxsware Studio, so the portal’s Download serves it and customers’ studios update themselves.
How updates reach customers
Section titled “How updates reach customers”Releases live in the Cloudflare R2 bucket noxsware-releases, one folder per environment:
| Object | What it is |
|---|---|
studio/<env>/NoxswareStudio.exe |
What the portal’s Download serves. |
studio/<env>/latest.json |
The current version, its date, the notes for the update bar, and (when signed) the exe’s SHA-256 and release signature. |
studio/<env>/v<version>/NoxswareStudio.exe |
A copy of each version, kept for rolling back. |
<env> is prod, staging or dev. noxsware.com serves prod; staging.noxsware.com and dev.noxsware.com serve the others.
The website reads latest.json and caches it for 5 minutes. Each time a customer’s studio starts, it asks noxsware.com for a newer version. When latest.json names one and is signed, the studio downloads the exe in the background, checks its SHA-256 and the release signature, and installs it on Restart now or when the studio closes. A build without a valid signature is never installed by itself; the studio only says Noxsware Studio {version} is available. and links the portal. After an update, the studio shows What’s new once, from app/Assets/changelog.md.
Before you release
Section titled “Before you release”- Add a section at the top of
app/Assets/changelog.mdin thenoxsware-clothingrepository, for example## 1.6.0 — 2026-11-10, then### groupand- pointlines. Write it for customers: what they can do now, in plain words. A test fails when the version has no section. - Bump
<Version>inapp/Noxsware.App.csproj(for example1.6.0) and commit. - Tag the commit with the same version,
v1.6.0. The tag message becomes the notes in the update bar.
A build for staging or dev must carry that environment’s license public key (PublicKeyPem in app/Licensing.cs), or it cannot check licenses from that server. A prod build only works with prod keys.
Release with GitHub Actions
Section titled “Release with GitHub Actions”The Release Studio workflow (.github/workflows/release.yml in noxsware-clothing) builds, tests, signs and uploads in one go.
-
To prod: push the tag.
Terminal window git tag -a v1.6.0 -m "One line for the update bar."git push origin v1.6.0It uploads to
studio/prod/and makes a GitHub release with the exe and its.sha256. -
To staging or dev: Actions → Release Studio → Run workflow, pick the commit, the channel (
staging,devorprod) and optional notes. It uploads tostudio/<channel>/only, with no GitHub release.
The run stops on purpose when the tag does not match <Version>, when the tests fail, or when the GTA key file (build/ngkeys.dat) is missing from the bucket. Without the release-signing key secret it still uploads, but unsigned: studios then offer the portal download instead of updating themselves.
Release by hand
Section titled “Release by hand”Use this when the workflow cannot run. You need the release-signing private key, which is kept offline and never on a server or in git.
-
Build from a clean checkout of the tag, with
app/Assets/ngkeys.datcopied in:Terminal window dotnet publish app -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=none -o dist-single -
Rename
dist-single\Noxsware.App.exetoNoxswareStudio.exe. -
Sign it and write
latest.json:Terminal window dist-single\NoxswareStudio.exe --release-sign <private key .pem> dist-single\NoxswareStudio.exe 1.6.0 dist-single\latest.json "One line for the update bar"It refuses to write anything when the key does not match the public key in the build.
-
Upload to R2, the exe first and
latest.jsonlast, so no studio is told about a version it cannot download yet:Terminal window npx wrangler r2 object put noxsware-releases/studio/prod/v1.6.0/NoxswareStudio.exe --file dist-single/NoxswareStudio.exe --jurisdiction eu --remotenpx wrangler r2 object put noxsware-releases/studio/prod/NoxswareStudio.exe --file dist-single/NoxswareStudio.exe --jurisdiction eu --remotenpx wrangler r2 object put noxsware-releases/studio/prod/latest.json --file dist-single/latest.json --jurisdiction eu --remote -
Make a GitHub release for the tag with the exe and its SHA-256.
Check the release
Section titled “Check the release”https://noxsware.com/api/studio/latestshows the new version within 5 minutes.- The portal’s download card shows the new version.
- An older studio on a licensed PC shows Noxsware Studio {version} is ready. It installs when you restart or close the Studio. soon after it starts.
Roll back
Section titled “Roll back”-
Download the previous version from its own folder:
Terminal window npx wrangler r2 object get noxsware-releases/studio/prod/v1.5.0/NoxswareStudio.exe --file NoxswareStudio.exe --jurisdiction eu --remote -
Put it back as
studio/prod/NoxswareStudio.exe, then put back alatest.jsonthat names that version (the one from its release, so the signature matches).
Studios that already updated keep the newer version: they only install versions newer than the one they run. To fix a bad release for them, release a new version with a higher number.
Good to know
Section titled “Good to know”- Only the published single-file exe updates itself. A Debug build, or the app run from
bin\, never does. - An exe in a folder it cannot write to, such as under Program Files, cannot update itself. It shows the portal link instead.
- The replaced exe stays as
NoxswareStudio.exe.olduntil the next start deletes it. - Studios older than 1.3.0 have no updater. Those customers download once from the portal.
- If the release-signing key is lost, installed studios can no longer update themselves, and every customer has to download a build with a new key by hand. Keep it backed up offline.
- The website and API ship separately, through the
noxswarerepository’s own deploy (deploy/README.md). A Studio release does not touch them.