Skip to content

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.

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.

  1. Add a section at the top of app/Assets/changelog.md in the noxsware-clothing repository, for example ## 1.6.0 — 2026-11-10, then ### group and - point lines. Write it for customers: what they can do now, in plain words. A test fails when the version has no section.
  2. Bump <Version> in app/Noxsware.App.csproj (for example 1.6.0) and commit.
  3. 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.

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.0

    It 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, dev or prod) and optional notes. It uploads to studio/<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.

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.

  1. Build from a clean checkout of the tag, with app/Assets/ngkeys.dat copied 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
  2. Rename dist-single\Noxsware.App.exe to NoxswareStudio.exe.

  3. 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.

  4. Upload to R2, the exe first and latest.json last, 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 --remote
    npx wrangler r2 object put noxsware-releases/studio/prod/NoxswareStudio.exe --file dist-single/NoxswareStudio.exe --jurisdiction eu --remote
    npx wrangler r2 object put noxsware-releases/studio/prod/latest.json --file dist-single/latest.json --jurisdiction eu --remote
  5. Make a GitHub release for the tag with the exe and its SHA-256.

  • https://noxsware.com/api/studio/latest shows 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.
  1. 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
  2. Put it back as studio/prod/NoxswareStudio.exe, then put back a latest.json that 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.

  • 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.old until 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 noxsware repository’s own deploy (deploy/README.md). A Studio release does not touch them.