Release

From TrayHard/d2r-ultra-utility · View interactive version

Release is an AI agent skill from the GitHub repository TrayHard/d2r-ultra-utility. Cut and publish a new release of Diablo II Ultra Utility. Use when the user wants to ship a new version / update — "release a new version", "publish an update", "cut a release", "bump and release", "выпусти обновление", "зарелизь". Windows-only; bumps the version, builds the signed MSI, tags & pushe

How to use this skill

Skill file

Release a new version

This project ships as a Windows signed MSI with Tauri auto-update. A release = local signed build (nogit/build/build-signed.bat) + a GitHub release carrying two assets: the MSI and latest.json. There is no CI and no cross-platform build — ignore any build-linux.sh / build-macos.sh / build-portable.bat / .github/workflows/ in the tree (unfinished experiment in a stash).

Repo: TrayHard/d2r-ultra-utility · releases: https://github.com/TrayHard/d2r-ultra-utility/releases

Guardrails

Step 1 — Pre-flight checks

Run these and resolve any problem before continuing:

git rev-parse --abbrev-ref HEAD          # must be: master
git status --porcelain                    # should be empty (or only the intended release changes)
Test-Path .tauri_key                      # must be True
git fetch origin; git status -sb          # confirm not behind origin/master
node -v                                    # tauri build needs Node + Rust toolchain present

Step 2 — Build, tag, push (one command)

.\nogit\build\build-signed.bat patch    # or: minor | major

This bumps package.json + package-lock.json + src-tauri/tauri.conf.json, builds the signed MSI, generates latest.json, commits as v<version>, tags v<version>, pushes branch + tag, and opens the releases page in a browser.

After it finishes, capture the new version (it's the new version in tauri.conf.json) and confirm the artifacts exist:

$Version = (Get-Content src-tauri/tauri.conf.json | ConvertFrom-Json).version
$Bundle  = "src-tauri/target/release/bundle"
$Msi     = Get-ChildItem "$Bundle/msi/*.msi" | Where-Object Name -like "*${Version}*" | Select-Object -First 1
"version = $Version"; "msi     = $($Msi.FullName)"; "latest  = $Bundle/latest.json"
Get-Content "$Bundle/latest.json"   # sanity-check: version matches $Version, url ends in the MSI name

If the build failed (no MSI / no latest.json), stop — do not publish a partial release. Common causes: missing .tauri_key, Rust toolchain not installed, file locks.

Step 3 — Create the GitHub release + upload the two assets

The tag is already pushed by Step 2; now attach the assets. Prefer gh; fall back to manual.

If gh is installed and authenticated (gh auth status):

gh release create "v$Version" `
  "$($Msi.FullName)" `
  "$Bundle/latest.json" `
  --repo TrayHard/d2r-ultra-utility `
  --title "v$Version" `
  --notes "v$Version"

(If a release for the tag already exists, use gh release upload "v$Version" "<msi>" "$Bundle/latest.json" --clobber instead.)

If gh is NOT available (currently the case — no gh CLI and no GitHub MCP connector is wired up): do it manually on the releases page nogit/build/build-signed.bat already opened, or open https://github.com/TrayHard/d2r-ultra-utility/releases/new?tag=v<version> — set the title to v<version>, then drag in both:

…and click Publish release. To make this scriptable next time, suggest the user install GitHub CLI: winget install --id GitHub.cli then gh auth login.

Step 4 — Verify auto-update will work

The updater reads releases/latest/download/latest.json. Confirm the published manifest is correct and reachable:

# Follows the /latest/ redirect to the just-published release
Invoke-WebRequest "https://github.com/TrayHard/d2r-ultra-utility/releases/latest/download/latest.json" |
  Select-Object -ExpandProperty Content

Check that:

If version doesn't match or the URL 404s, auto-update is broken for everyone — fix by re-uploading the correct latest.json / MSI to that release.

Done

Report to the user: new version, the release URL (https://github.com/TrayHard/d2r-ultra-utility/releases/tag/v<version>), and that the updater manifest verified. If anything was skipped (e.g. manual upload pending), say so explicitly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.