build-release
/build-release
Build and release the full Rook plugin suite (C++ native, C# companion, Python MCP, Chirp, knowledge stores) as a Windows installer. Use when user mentions: build release, package release, bump version, build installer, ship it, make a release, cut a release, build the plugins, package for release, create installer, ISCC, Inno Setup, version bump. Requires a semver version string (X.Y.Z).
- Author
- bringfire ↗
- Repository
- rook ↗
- Licence
- MIT
- Last repository change
- 18.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
Build and release the full Rook plugin suite (C++ native, C# companion, Python MCP, Chirp, knowledge stores) as a Windows installer. Use when user mentions: build release, package release, bump version, build installer, ship it, make a release, cut a release, build the plugins, package for release, create installer, ISCC, Inno Setup, version bump. Requires a semver version string (X.Y.Z).
Original author description
Build and release the full Rook plugin suite (C++ native, C# companion, Python MCP, Chirp, knowledge stores) as a Windows installer. Use when user mentions: build release, package release, bump version, build installer, ship it, make a release, cut a release, build the plugins, package for release, create installer, ISCC, Inno Setup, version bump. Requires a semver version string (X.Y.Z).
How it works
- Usage
- Pipeline Overview
- Step 0: Pre-flight Checks
- Step 1: Release Branch Version Bump
- Step 2: Check Out Exact Release SHA
- Step 3A: Build Bundled Python Runtime And Wheelhouse
- Step 3: Validate Bundled FFmpeg
- Step 3B: Validate the OCCT Payload and Build Its Source Bundle
- Step 4: Build C++ Native Plugin
- Step 5: Build C Companion Plugin and RookBIM Module
SKILL.md preview
---
name: build-release
description: |
Build and release the full Rook plugin suite (C++ native, C# companion,
Python MCP, Chirp, knowledge stores) as a Windows installer. Use when user
mentions: build release, package release, bump version, build installer,
ship it, make a release, cut a release, build the plugins, package for release,
create installer, ISCC, Inno Setup, version bump. Requires a semver version
string (X.Y.Z).
---
# Build & Release
Build the full Rook plugin suite and produce a Windows installer.
## Usage
```
/build-release 1.2.3
```
The argument is a semver version (X.Y.Z). If omitted, ask the user.
## Pipeline Overview
| Step | Action | Abort if |
|------|--------|----------|
| 0 | Pre-flight checks | Any check fails |
| 1 | Release branch version bump (10 files / 14 edits) | Verification fails |
| 2 | Merge the release PR and check out the exact main SHA to tag | Main HEAD is not the intended release commit |
| 3A | Build **and validate** bundled private Python runtime and offline wheelhouse | Build or wheelhouse validation fails |
| 3 | Validate the committed FFmpeg payload (never replaced) and the staged source bundle | Validation fails |
| 3B | Validate the shipped OCCT DLLs and notices; build and validate the OCCT source bundle | Validation fails |
| 4 | Build C++ native plugin | Exit code != 0 |
| 5 | Build C# companion plugin for all managed runtimes | Exit code != 0 |
| 6 | Verify all .iss source paths | Any required file missing or stale |
| 7 | Run ISCC compiler | Exit code != 0 or output missing |
| 8 | Installer live smoke + release artifact validation manifest | Smoke or validation fails |
| 9 | Public promotion PR and release with all required assets | Promotion or gh command fails |
**HARD RULE: Abort the entire pipeline on any step failure. No partial releases.**
## Step 0: Pre-flight Checks
Run all of these before touching any files:
```powershell
# 1. Parse version from argument - must match X.Y.Z
if ($VERSION -notmatch '^[0-9]+\.[0-9]+\.[0-9]+$') { throw "Version must be X.Y.Z" }
# 2. Clean git status (no uncommitted changes)
$dirty = git status --porcelain
if ($dirty) { git status --short; throw "Working tree is dirty" }
# 3. Rhino not running (would lock DLLs)
$rhino = Get-Process | Where-Object { $_.ProcessName -match '^(Rhino|Rhinoceros)$' }
if ($rhino) { $rhino | Select-Object ProcessName, Id; throw "Close Rhino before building" }
# 4. VS build tools exist
if ([string]::IsNullOrWhiteSpace($ChirpRoot)) { throw 'Select the exact Chirp checkout explicitly.' }
$ChirpRoot = (Resolve-Path -LiteralPath $ChirpRoot).Path
if (git -C $ChirpRoot status --porcelain) { throw 'Selected Chirp checkout must be clean.' }
$chirpGitSha = (git -C $ChirpRoot rev-parse HEAD).Trim()
if ($LASTEXITCODE -ne 0) { throw 'Selected Chirp checkout is invalid.' }
$requiredPaths = @(
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat",
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\atlmfc",
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe",
(Join-Path $ChirpRoot 'pyproject.toml')
)
foreach ($path in $requiredPaths) {
if (-not (Test-Path $path)) { throw "Missing required release path: $path" }
}
# 5. Release contracts and package metadata are internally consistent
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\tests\release-surface-hygiene.tests.ps1
if ($LASTEXITCODE -ne 0) { throw "Release-surface hygiene guard failed" }
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\tests\release-installer-guards.tests.ps1 -SkipBuiltPayloadCheck
if ($LASTEXITCODE -ne 0) { throw "Release-installer guard failed" }
claude plugin validate --strict .
if ($LASTEXITCODE -ne 0) { throw "Claude plugin validation failed" }
uv lock --check --directory mcp_server
if ($LASTEXITCODE -ne 0) { throw "Python lock metadata is stale" }
```
If Rhino is running, tell the user to close it — DLL locks will cause build failures.
If git is dirty, tell the user to commit or stash first.
### Bundled FFmpeg
Rook release installers bundle an LGPL-only `ffmpeg.exe` for generated-video
thumbnail and frame sidecar extraction. The reviewed binary is committed at
`third_party\ffmpeg\ffmpeg.exe`, built from the committed Rook minimal recipe, with
its hash pinned in `third_party\ffmpeg\ffmpeg-provenance.json`. The build is not
byte-reproducible, so a release **preserves and validates** the committed payload;
it never replaces it. The matching source bundle is committed through Git LFS at
`third_party\ffmpeg\source\` and is published beside the installer. Do not
regenerate it for a release: a fresh `build-rook-ffmpeg.ps1` run produces a
different zlib static archive, and validation refuses its manifest.
Before building an installer, validate:
```powershell
$ffmpegManifest = 'third_party\ffmpeg\source\source-bundle-manifest.json'
git lfs pull --include 'third_party/ffmpeg/**'
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\validate-ffmpeg-bundle.ps1 -SourceBundleManifestPath $ffmpegManifest
```
`build-rook-ffmpeg.ps1 -InstallPayload` replaces the committed binary and its
provenance with a fresh, different build. Use it only in a deliberate, reviewed
FFmpeg-update pull request, never during a release.
The guard fails closed for missing metadata, checksum mismatch, GPL/nonfree
configure flags, unexpected `--enable-*` flags outside
`scripts\ffmpeg\rook-ffmpeg-enable-allowlist.json`, unverified official source
signatures from `scripts\ffmpeg\rook-ffmpeg-source.json`, missing compliance
files, missing source-bundle manifest/content, or failure to extract poster,
first-frame, and last-frame JPEGs from the required smoke fixtures.
PATH-discovered FFmpeg is allowed for development smoke only and cannot satisfy
release validation.
## Step 1: Release Branch Version Bump
Read the reference file for exact locations and patterns:
```
Read references/version-locations.md
```
Create a release branch from updated `main` before editing:
```powershell
git switch main
git pull --ff-only origin main
git switch -c release/vX.Y.Z
```
Update all 10 files using the Edit tool. The `.rc` file requires 4 separate edits
(FILEVERSION binary, PRODUCTVERSION binary, FileVersion string, ProductVersion string),
and the marketplace manifest requires 2. After changing `pyproject.toml`, regenerate
the lock with `uv lock`; its diff may change only the local `rook-mcp` project version.
After all edits, verify with:
```powershell
Select-String -Path `
mcp_server\pyproject.toml, `
mcp_server\uv.lock, `
installer\RookSetup.iss, `
src\Rook\Rook.csproj, `
src\RookBim\RookBim.csproj, `
src\RookNative\RookNative.rc, `
src\RookNative\RookNativePlugin.cpp, `
src\RookNative\RookServer.cpp, `
.claude-plugin\plugin.json, `
.claude-plugin\marketplace.json `
-Pattern "X.Y.Z"
```
Expect 12 string matches (`pyproject.toml`, the local `rook-mcp` block in `uv.lock`,
`RookSetup.iss`, `Rook.csproj`,
`RookBim.csproj`, the two string values in `RookNative.rc`,
`RookNativePlugin.cpp`, `RookServer.cpp`, `plugin.json`, and both version fields in
`marketplace.json`). Then verify the binary version lines in `RookNative.rc`
separately. Run the strict Claude and release-surface validations again before commit.
```powershell
uv lock --directory mcp_server
git diff -- mcp_server\uv.lock
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\tests\release-surface-hygiene.tests.ps1 -Area Metadata
claude plugin validate --strict .
```
Stop if the lock diff changes any third-party package or any field outside the local
`rook-mcp` project version.
Commit and push only the version-bumped files on the release branch:
```powershell
git add mcp_server\pyproject.toml mcp_server\uv.lock installer\RookSetup.iss src\Rook\Rook.csproj src\RookBim\RookBim.csproj src\RookNative\RookNative.rc src\RookNative\RookNativePlugin.cpp src\RookNative\RookServer.cpp .claude-plugin\plugin.json .claude-plugin\marketplace.json
git commit -m "release: bump versions to X.Y.Z"
git push -u origin release/vX.Y.Z
```
Open a release PR and merge it before building publishable artifacts. Do not
publish artifacts built from a branch SHA if the PR creates a different merge
commit.
## Step 2: Check Out Exact Release SHA
After the release PR is merged, update local `main` and record the exact commit
that will be tagged. All publishable artifacts must be built from this SHA.
```powershell
git switch main
git pull --ff-only origin main
$gitSha = (git rev-parse HEAD).Trim()
$buildStartedAt = [DateTimeOffset]::Now.ToString('o')
```
If the commit changes after any artifact is built, discard those artifacts,
rebuild from the new `main` SHA, rerun smoke, and regenerate the release
manifest.
## Step 3A: Build Bundled Python Runtime And Wheelhouse
Run this stage from the exact checked-out release SHA, after recording
`$buildStartedAt` and before verifying `.iss` source paths or invoking ISCC.
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\python-runtime\stage-rook-python-runtime.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\python-runtime\build-rook-python-wheelhouse.ps1 -Version $Version -ChirpRoot $ChirpRoot
if ($LASTEXITCODE -ne 0) { throw 'Wheelhouse build failed.' }
$builtManifest = Get-Content -LiteralPath 'installer/runtime/python-runtime-manifest.json' -Raw | ConvertFrom-Json
if ($builtManifest.chirp_git_sha -cne $chirpGitSha) { throw 'Wheelhouse Chirp source identity differs.' }
```
This stages CPython 3.11.9 from the pinned official Python NuGet package, builds
non-editable wheels for `rook-mcp` and Chirp, creates one union wheelhouse,
rejects source distributions in the final public installer payload, validates
wheel tags against the pinned interpreter's accepted tag set, validates import
origins from temporary venv `site-packages`, runs `pip check`, records the Chirp
sibling-repo source identity, records package license/provenance evidence, and
writes `installer\runtime\python-runtime-manifest.json`.
Public/full installer builds must package only this sealed Python runtime
payload. Do not use user Python, PATH Python, PyPI, editable installs, or source
tree `PYTHONPATH` entries to satisfy MCP or Chirp release installation.
**Then validate the staged wheelhouse before going further (fail closed):**
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\validate-python-wheelhouse.ps1 -Version $Version
```
The wheelhouse is a gitignored local build artifact, so nothing in version
control proves it matches the release being built. This guard is the forcing
function that makes a stale wheelhouse impossible to ship: it fails closed
unless the staged wheelhouse is internally consistent with
`python-runtime-manifest.json` (every listed wheel present with a matching
SHA256, no extra wheels, no source distributions, lockfile hashes intact) AND
stamped with the **exact** release version (`release_version`, the `rook_mcp`
wheel, and the rook lockfile pin all equal `X.Y.Z` — strict version-equality).
If this fails with a version mismatch, the wheelhouse was not rebuilt for this
release: re-run `build-rook-python-wheelhouse.ps1 -Version X.Y.Z` above.
> Defense in depth: Step 8's `validate-release-artifacts.ps1` independently
> re-checks `python_runtime_manifest.release_version == X.Y.Z` and
> `rook_git_sha == <release SHA>` against the *installed* runtime, so a stale
> wheelhouse is blocked again before publish even if this early gate is skipped.
> Do not rely on that as the only check — the point of this step is to catch the
> problem **before** building a doomed installer and running a full live smoke.
## Step 3: Validate Bundled FFmpeg
Preserve and validate the committed payload; a release never replaces it (see
Bundled FFmpeg above).
```powershell
$ffmpegManifest = 'third_party\ffmpeg\source\source-bundle-manifest.json'
git lfs pull --include 'third_party/ffmpeg/**'
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\validate-ffmpeg-bundle.ps1 -SourceBundleManifestPath $ffmpegManifest
```
## Step 3B: Validate the OCCT Payload and Build Its Source Bundle
Rook ships 11 OCCT DLLs (LGPL-2.1 with the Open CASCADE exception) from a local
OCCT build. `third_party\occt\occt-provenance.json` pins the upstream commit, the
digest of that commit's full file listing, the build recipe, and the sha256 of
every shipped DLL. The provenance is reconstructed; see
`docs\rook_docs\occt-build.md` for the evidence and its limitation. The
corresponding source is published beside the installer as a separate zip. It is
never packaged into the installer.
Resolve the OCCT runtime directory **once**. The validator here and ISCC in Step 7
must both use this exact `$OcctRuntimeRoot`, so the DLLs that were validated are
the DLLs that get packaged:
Run from the exact release repository root:
```powershell
$repoRoot = (Resolve-Path .).Path
$OcctRuntimeRoot = (Resolve-Path -LiteralPath (Join-Path $repoRoot '..\OCCT\build-rook\win64\vc14\bin')).Path
$bundlePython = Join-Path $repoRoot 'installer\runtime\python\cpython-3.11.9\python.exe'
& $bundlePython -I scripts\occt\rook_occt_bundle.py build --occt-repo (Join-Path $repoRoot '..\OCCT')
if ($LASTEXITCODE -ne 0) { throw 'OCCT source bundle build failed.' }
& $bundlePython -I scripts\occt\rook_occt_bundle.py validate --manifest artifacts\occt\rook-occt-source-bundle-manifest.json --occt-runtime-root $OcctRuntimeRoot
if ($LASTEXITCODE -ne 0) { throw 'OCCT payload or source bundle validation failed.' }
```
The build refuses unless tag `V8_0_0` still names the pinned commit. It archives
that commit from a private bare clone with line-ending conversion disabled, so the
published source is the commit's blobs byte for byte. It writes
`artifacts\occt\rook-occt-8.0.0-source-bundle.zip` and
`rook-occt-source-bundle-manifest.json`.
Validation fails closed when any of these is true:
- a DLL in `$OcctRuntimeRoot` differs from its pinned sha256;
- the `.iss` ships a different DLL set;
- the OCCT licence texts differ from their pins;
- a notice file is not installed with the plugins component;
- the bundle's bytes, commit or members differ from the pin;
- a single source file in the archive differs from the pinned commit's listing.
## Step 4: Build C++ Native Plugin
Write an ephemeral batch file and execute it from PowerShell:
```powershell
$buildBat = Join-Path $env:TEMP "rook_build_native_release.bat"
@'
@echo off
set "VSCMD_START_DIR=%CD%"
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=14.44
set VCToolsVersion=14.44.35207
msbuild "%~1" /p:Configuration=Release /p:Platform=x64 /p:VCToolsVersion=14.44.35207 /m /v:minimal
echo EXIT_CODE=%ERRORLEVEL%
'@ | Set-Content -Path $buildBat -Encoding ASCII
& $buildBat "$Repo\src\RookNative\RookNative.vcxproj" 2>&1 |
Select-String -Pattern "EXIT_CODE|Build succeeded|Build FAILED|error MSB|error C[0-9]"
```
**Key gotchas:**
- Must call vcvarsall.bat FIRST with `-vcvars_ver=14.44` — without it, MSBuild can pick the incomplete 14.38 MFC payload
- Must set VCToolsVersion=14.44.35207 explicitly — the default may pick a toolset without MFC
- Must use a .bat file — bash can't source vcvarsall.bat directly
- The /p: flags with forward slashes get mangled by bash — route through .bat to avoid this
Verify: `EXIT_CODE=0` in output and file exists:
```powershell
Test-Path src\RookNative\bin\Release\x64\RookNative.rhp
```
## Step 5: Build C# Companion Plugin and RookBIM Module
Call `dotnet build` directly (C# doesn't need MFC):
```powershell
dotnet build src\Rook\Rook.csproj -c Release
dotnet build src\RookBim\RookBim.csproj -c Release
```
**Key gotcha:** The release installer must package all companion runtime
outputs. Rhino 8 standalone loads a .NET Core payload; Rhino.Inside.Revit on
Revit 2025+ needs the sibling `net8.0` payload, and .NET Framework hosts need
the sibling `net48` payload. `RookBim.csproj` must be built after
`Rook.csproj`; its post-build target copies `RookBim.dll` into the net48
companion payload that the installer packages for Rhino.Inside/Revit. The Inno
direct-registry sibling layout is a release hypothesis, not proof; only the
live Inno-install smoke can prove Rhino redirected from the registered child to
the physical runtime sibling.
Verify:
```powershell
Test-Path src\Rook\bin\Release\net8.0\Rook.rhp
Test-Path src\Rook\bin\Release\net8.0\Rook.deps.json
Test-Path src\Rook\bin\Release\net8.0\Rook.runtimeconfig.json
Test-Path src\Rook\bin\Release\net8.0\runtimes
Test-Path src\Rook\bin\Release\net7.0\Rook.rhp
Test-Path src\Rook\bin\Release\net7.0\Rook.deps.json
Test-Path src\Rook\bin\Release\net7.0\Rook.runtimeconfig.json
Test-Path src\Rook\bin\Release\net7.0\runtimes
Test-Path src\Rook\bin\Release\net48\Rook.rhp
Test-Path src\Rook\bin\Release\net48\RookBim.dll
Test-Path src\Rook\bin\Release\net48\runtimes
```
## Prime Payload Admission
Supply `$PrimeRuntimePayload` as the exact independently qualified
`runtimes/<runtime-id>` directory from one assembly attempt. This step never
builds Prime or acquires dependencies. Run from the exact release repository
root after the sealed wheelhouse has been verified and before Step 6 or ISCC.
<!-- prime-payload-admission -->
```powershell
$repoRoot = (Resolve-Path .).Path
$payload = Get-Item -LiteralPath $PrimeRuntimePayload -Force
if (-not $payload.PSIsContainer -or ($payload.Attributes -band [IO.FileAttributes]::ReparsePoint) -or
$payload.Name -cnotmatch '^[A-F0-9]{64}$' -or $payload.Parent.Name -cne 'runtimes') {
throw 'Select a direct assembled runtimes/<runtime-id> payload.'
}
$siblings = @(Get-ChildItem -LiteralPath $payload.Parent.FullName -Directory |
Where-Object { $_.Name -cmatch '^[A-F0-9]{64}$' })
if ($siblings.Count -ne 1) { throw 'Assembly attempt must contain exactly one runtime.' }
$PrimeRuntimePayload = $payload.FullName
$verificationRoot = Join-Path $repoRoot 'artifacts/python-wheelhouse/verify-rook-venv'
$verificationPython = Join-Path $repoRoot 'artifacts/python-wheelhouse/verify-rook-venv/Scripts/python.exe'
$verificationRecord = Join-Path $repoRoot 'artifacts/python-wheelhouse/verification-rook.json'
foreach ($path in @($verificationPython, $verificationRecord)) {
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) { throw "Missing sealed-wheel input: $path" }
}
if (Test-Path Env:PYTHONPATH) { throw 'PYTHONPATH must be absent.' }
$wheelManifest = Get-Content -LiteralPath 'installer/runtime/python-runtime-manifest.json' -Raw | ConvertFrom-Json
if ($wheelManifest.release_version -cne $Version -or $wheelManifest.rook_git_sha -cne $gitSha) {
throw 'Sealed wheel does not match the final release version and source commit.'
}
$originProbe = @'
import importlib.util, json, pathlib, sys
site = pathlib.Path(sys.argv[1]).resolve() / 'Lib' / 'site-packages'
record = json.loads(pathlib.Path(sys.argv[2]).read_text(encoding='utf-8'))
assert pathlib.Path(record["audit_site_packages"]).resolve() == site
assert record["installer_tool"]["name"] == "uv" and record["uv_install_offline_contract"] is True
assert record["uv_cache_removed_before_checks"] is True and record["freeze_matches_locks"] is True
assert record["bytecode_compiled"] is True
assert record["pip_check"] == "No broken requirements found."
assert record["import_record"]["module"] == "rook" and record["import_record"]["origin"] == "site-packages"
spec = importlib.util.find_spec('rook.agent.chat.prime_runtime_artifact')
assert spec is not None and spec.origin and pathlib.Path(spec.origin).resolve().is_relative_to(site), 'verifier must come from sealed-wheel site-packages, not mcp_server/src or an editable installation'
'@
# Run the probe from a temp file: Windows PowerShell 5.1 re-quotes native arguments and
# splits an inline script at its embedded double quotes.
$originProbePath = Join-Path ([IO.Path]::GetTempPath()) ('rook-origin-probe-' + [Guid]::NewGuid().ToString('N') + '.py')
[IO.File]::WriteAllText($originProbePath, $originProbe)
try {
& $verificationPython -I $originProbePath $verificationRoot $verificationRecord
$originProbeExit = $LASTEXITCODE
} finally {
if (Test-Path -LiteralPath $originProbePath) { [IO.File]::Delete($originProbePath) }
}
if ($originProbeExit -ne 0) { throw 'Sealed-wheel verifier origin refused.' }
& $verificationPython -I -m rook.agent.chat.prime_runtime_artifact verify --runtime-root $PrimeRuntimePayload --expected-runtime-id $payload.Name
if ($LASTEXITCODE -ne 0) { throw 'Prime runtime payload verification refused.' }
```
## Step 6: Verify All .iss Source Paths
Read the reference file for the full checklist:
```
Read references/iss-source-paths.md
```
Every required file listed there must exist. Additionally, verify build outputs
are **newer than the version bump** (not stale from a previous build).
Now run the complete installer guard without the source-only switch so the built
companion payloads are required:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\tests\release-installer-guards.tests.ps1
if ($LASTEXITCODE -ne 0) { throw "Release-installer payload guard failed" }
```
## Step 7: Run Inno Setup Compiler
```powershell
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "/DPrimeRuntimePayload=$PrimeRuntimePayload" "/DOcctRuntimeRoot=$OcctRuntimeRoot" (Join-Path $repoRoot 'installer/RookSetup.iss')
if ($LASTEXITCODE -ne 0) { throw 'ISCC failed; no runtime is published.' }
```
Check the tail of the output for `Successful compile`. Verify:
```powershell
$installer = Get-Item installer\output\Rook-Setup-X.Y.Z.exe
$installer.Length
```
Sanity check: the bundled-Python installer baseline is ~221MB (v1.5.10). Fail
the step if the output is below ~150MB - that means the Python runtime,
wheelhouse, knowledge stores, or Chirp payload was excluded.
## Step 8: Installer Live Smoke and Artifact Validation
Install the generated EXE on the release machine and verify both Rhino hosts:
```powershell
# Standalone Rhino smoke
python scripts\run_rhino_runtime_harness.py --smoke ping-only
# Manual release gate
# 1. Launch Revit with Rhino.Inside.Revit.
# 2. Start Rhino from the Rhino.Inside.Revit tab.
# 3. Confirm RookNative and Rook load without CLR binding or TypeLoad errors.
# 4. Run a non-mutating Rook ping from the discovered native port.
# 5. Record the managed companion self-report from %LOCALAPPDATA%\Rook\discovery\companion-<pid>.json.
```
Do not publish the installer if the Rhino.Inside.Revit smoke was not run or did
not pass. Do not cite Yak/package-manager layout docs as proof for this Inno
installer shape. Record the Rhino, Revit, Rhino.Inside.Revit, Rook versions,
and companion self-report evidence in the release notes. Do not use registry
`FileName` values or `Get-Process.Modules` absence as proof of managed
companion load.
Verify the licence and third-party notices the installation actually carries (#598).
Every directly installed notice must exist at its installed location with exactly
the bytes of the repository file the `.iss` packages: Rook's `LICENSE`, the notice
index, and the OCCT, cpp-httplib, nlohmann/json, font and FFmpeg notices.
"When installed" entries (the Prime runtime and private Python notices) must exist
because this smoke installs the full product. Keep the evidence file with the smoke
manifest:
```powershell
& $bundlePython -I scripts\verify_installed_notices.py --output installer\output\installed-notices-X.Y.Z.json
if ($LASTEXITCODE -ne 0) { throw 'Installed licence/notice files are missing or differ from their sources.' }
```
This checks the installed files from the full smoke install. A plugins-only
installation is not exercised; its notice selection is covered by the `.iss`
guard tests.
Generate the Python/runtime evidence from the installed private Rook venv before
writing the smoke manifest:
```powershell
& "$env:LOCALAPPDATA\Rook\venv\Scripts\python.exe" -m rook.local_testing_proof python-smoke-evidence --out "$env:TEMP\rook-python-smoke-evidence.json"
```
The command self-seeds `ROOK_INSTALL_ROOT`, `ROOK_DATA_DIR`, `ROOK_MODE`,
`CHIRP_HOME`, `DSPY_CACHEDIR`, and restricted-pickle settings from the installed
venv path before it validates the runtime.
Copy the successful gate's `details` object into
`installer\output\release-smoke-X.Y.Z.json`, then add the installer identity and
host-specific standalone/Rhino.Inside evidence. Do not hand-author or guess the
Python evidence fields.
Write a structured smoke manifest at `installer\output\release-smoke-X.Y.Z.json`
with at least:
```
git_sha
installer_sha256
rook_version
smoke_started_utc
python_runtime_manifest
install_state
private_python_path
private_python_version
rook_venv_path
chirp_venv_path
rook_import_file
chirp_import_file
pip_check:
rook:
ok
chirp:
ok
rook_dspy_cache:
restrict_pickle
disk_cache_dir
chirp_dspy_cache:
restrict_pickle
disk_cache_dir
config_identity:
chat_service_python_path
chirp_home
release_pythonpath_entries
no_index_install
chirp_git_sha
chirp_source_archive_sha256
standalone_rhino:
rhino_version
host_runtime
native_port
ping_result
plugin_manager_listed
chat_service_manifest_path
chat_service_health
loaded_native_path
companion_self_report:
processId
processName
rhinoInside
assemblyLocation
runtimeChild
targetFramework
startupGateAttached
deferredLocalStartupComplete
startupComplete
bridgeRegistered
onLoadUtc
startupCompleteUtc
statusUpdatedUtc
rhino_inside_revit:
rhino_version
revit_version
rhino_inside_version
host_runtime
native_port
ping_result
plugin_manager_listed
chat_service_manifest_path
chat_service_health
loaded_native_path
companion_self_report:
processId
processName
rhinoInside
assemblyLocation
runtimeChild
targetFramework
startupGateAttached
deferredLocalStartupComplete
startupComplete
bridgeRegistered
onLoadUtc
startupCompleteUtc
statusUpdatedUtc
```
Then validate artifact identity and emit the release manifest:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\validate-release-artifacts.ps1 `
-Version X.Y.Z `
-GitSha $gitSha `
-InstallerPath installer\output\Rook-Setup-X.Y.Z.exe `
-FfmpegSourceBundleManifestPath third_party\ffmpeg\source\source-bundle-manifest.json `
-OcctSourceBundleManifestPath artifacts\occt\rook-occt-source-bundle-manifest.json `
-SmokeManifestPath installer\output\release-smoke-X.Y.Z.json `
-OutputManifestPath installer\output\release-manifest-X.Y.Z.json `
-BuildStartedAt $buildStartedAt `
-RequireInstallerNewerThanScript
```
The release manifest must include `git_sha`, `installer_sha256`,
`ffmpeg_source_bundle_sha256`, `occt_source_bundle_sha256`, `occt_source_commit`, and smoke evidence. Do not create the GitHub
release if validation fails.
## Step 9: Public Promotion PR and Release
Record the accepted private source and artifact identities before copying anything:
```powershell
$privateReleaseSha = (git rev-parse HEAD).Trim()
if ($privateReleaseSha -ne $gitSha) { throw "Private release SHA changed after acceptance" }
$installerSha256 = (Get-FileHash -LiteralPath "installer/output/Rook-Setup-$Version.exe" -Algorithm SHA256).Hash
$releaseManifestSha256 = (Get-FileHash -LiteralPath "installer/output/release-manifest-$Version.json" -Algorithm SHA256).Hash
$smokeManifestSha256 = (Get-FileHash -LiteralPath "installer/output/release-smoke-$Version.json" -Algorithm SHA256).Hash
```
Create a detached private checkout at exactly `$privateReleaseSha`. Promotion bytes
must come only from that checkout—not from a mutable branch or working directory.
Create the public branch from the then-current `bringfire/rook-release` `origin/main`;
stop if either checkout is dirty or the public checkout is not based on that fetched
commit.
The byte-promoted inventory is exactly nine skill roots plus three singleton files,
and two retired public paths are deleted:
```powershell
$publicSkillNames = @(
'capture-convention',
'chirp',
'chirp-cascade',
'clean-layers',
'design-grasshopper',
'execute-grasshopper',
'plan-grasshopper',
'project-setup',
'twisted-column'
)
$singletonPaths = @(
'.claude-plugin/plugin.json',
'.claude-plugin/marketplace.json',
'LICENSE'
)
$retiredPublicPaths = @(
'hooks/hooks.json',
'scripts/session-start.sh'
)
$promotionRoot = Join-Path $env:TEMP "rook-public-promotion-$Version"
$privateSource = Join-Path $promotionRoot 'private-source'
$publicRoot = Join-Path $promotionRoot 'rook-release'
git worktree add --detach $privateSource $privateReleaseSha
gh repo clone bringfire/rook-release $publicRoot
git -C $publicRoot fetch origin
$publicBaseSha = (git -C $publicRoot rev-parse origin/main).Trim()
git -C $publicRoot switch -c "release/v$Version" origin/main
if (git -C $privateSource status --porcelain) { throw 'Detached private source is dirty' }
if (git -C $publicRoot status --porcelain) { throw 'Public checkout is dirty before promotion' }
if ((git -C $publicRoot merge-base HEAD origin/main).Trim() -ne $publicBaseSha) {
throw 'Public promotion branch is not based on current public main'
}
```
For each listed skill, exact-replace only `.claude/skills/<name>` in the public
checkout from the detached private source. Copy the three singleton files to their
same relative paths. Exact-delete only the retired public skill roots
`.claude/skills/design-road` and `.claude/skills/masterplan-roads` and each path in
`$retiredPublicPaths`; do not enumerate or delete other public directories. The plugin
ships no hooks: the always-on guidance that the retired `SessionStart` hook injected now
comes from the MCP server's `instructions`, which every client receives. Both
manifests' `SEE LICENSE IN LICENSE` value must resolve to the promoted `LICENSE`. Public-only README, site, and release-note edits are
separate reviewed changes in the public PR—not private-byte copies.
Generate source and candidate inventories for the promoted files containing relative
path, byte length, and SHA-256. Require the path sets, lengths, and hashes to match
exactly before committing or opening the public PR. The public PR must record:
- private release SHA and public base SHA;
- public promotion commit SHA;
- installer, FFmpeg source-bundle, OCCT source-bundle, smoke-manifest, release-manifest, and
installed-notices evidence (`installer\output\installed-notices-X.Y.Z.json`) hashes; and
- the complete promotion inventory.
After that PR is reviewed and merged, create the release in the public repository and
target the reviewed public promotion commit:
```powershell
$publicPromotionSha = '<reviewed rook-release merge SHA>'
$committedSourceBundleManifest = "third_party\ffmpeg\source\source-bundle-manifest.json"
$sourceBundleZip = Join-Path (Split-Path -Parent $committedSourceBundleManifest) (Get-Content $committedSourceBundleManifest -Raw | ConvertFrom-Json).bundle_path
# Publish the committed manifest under the stable public asset name.
$sourceBundleManifestPath = "installer\output\rook-ffmpeg-source-bundle-manifest.json"
Copy-Item -LiteralPath $committedSourceBundleManifest -Destination $sourceBundleManifestPath -Force
if ((Split-Path -Leaf $sourceBundleZip) -ne "rook-ffmpeg-8.1.1-source-bundle.zip") { throw "Unexpected FFmpeg source bundle path: $sourceBundleZip" }
$occtBundleManifestPath = "artifacts\occt\rook-occt-source-bundle-manifest.json"
$occtBundleZip = (Get-Content $occtBundleManifestPath -Raw | ConvertFrom-Json).bundle_path
if ((Split-Path -Leaf $occtBundleZip) -ne "rook-occt-8.0.0-source-bundle.zip") { throw "Unexpected OCCT source bundle path: $occtBundleZip" }
gh -R bringfire/rook-release release create "v$Version" `
"installer/output/Rook-Setup-$Version.exe" `
$sourceBundleZip `
$sourceBundleManifestPath `
$occtBundleZip `
$occtBundleManifestPath `
"installer/output/release-smoke-$Version.json" `
"installer/output/release-manifest-$Version.json" `
--target $publicPromotionSha `
--title "Rook v$Version" `
--generate-notes
```
Never create the customer release in the private repository. Report the public PR and
release URLs to the user.
## Cleanup
Delete the ephemeral .bat file:
```powershell
Remove-Item (Join-Path $env:TEMP "rook_build_native_release.bat") -Force -ErrorAction SilentlyContinue
```
## Troubleshooting
| Symptom | Cause | Fix |
|---------|-------|-----|
| `error MSB8041: MFC libraries are required` | vcvarsall.bat not sourced, or wrong VCToolsVersion | Must call vcvarsall.bat before msbuild, and set VCToolsVersion=14.44.35207 |
| C# output at wrong path | Installer expects sibling net8.0, net7.0, and net48 outputs | Build with `dotnet build src\Rook\Rook.csproj -c Release`; outputs are at `bin\Release\net8.0\`, `bin\Release\net7.0\`, and `bin\Release\net48\` |
| `RookBim.dll` missing or stale | `RookBim.csproj` was not built after the companion | Build with `dotnet build src\RookBim\RookBim.csproj -c Release`; verify `src\Rook\bin\Release\net48\RookBim.dll` is newer than the release build start. |
| MSBuild `/p:` flags ignored | Bash mangles forward-slash flags | Use .bat file or quote as `"-p:Configuration=Release"` |
| ISCC can't find source file | Path mismatch in .iss | Check CompanionDir matches actual build output path |
| `error MSB1008: Only one project` | MSBuild.exe invoked from bash with /p flags | Bash interprets /p as a path; use `-p:` or route through .bat |
| DLL locked / access denied | Rhino has the plugin loaded | Close Rhino before building |
| Installer too small (<150MB) | Missing bundled Python runtime/wheelhouse, knowledge stores, or Chirp | Verify all .iss source paths in Step 6, incl. the Python runtime staging outputs |
Files in this package (3)
- SKILL.md 33 KB
- references/iss-source-paths.md 17 KB
- references/version-locations.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · bringfire/rook | 93 | MIT |
| peteonrails/voxtype | 100 | MIT |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 00532d3112dc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100release
Cuts a MooshieUI semver release — bumps three version files, updates changelog and release notes, validates build, opens release PR, merges, tags, and triggers Build & Release CI. Use when the user says /release, cut a release, ship vX.Y.Z, or version bump. - 100nvidia-nemoclaw-maintainer-cut-release-tag
Cut a new semver release — bump all version strings via bump-version.ts, open a release PR, and after merge tag main and push. Use when cutting a release, tagging a version, shipping a build, or preparing a deployment. Trigger keywords - cut tag, release tag, new tag, cut… - 100release-installer
Release @postman/postman-plugin, the npx installer and Pi package, to npm - a release candidate on the `next` dist-tag or a plain version on `latest`. Use when asked to cut, publish, tag or ship an installer release or rc, promote an rc to latest, resume a release in progress,… - 100release
Cuts a MooshieUI semver release — bumps three version files, updates changelog and release notes, validates build, opens release PR, merges, tags, and triggers Build & Release CI. Use when the user says /release, cut a release, ship vX.Y.Z, or version bump. - 100windows-release
Build and verify the Windows desktop build (NSIS installer + latest.yml) for the canonical AlcaBots release and its legacy updater mirror. Use when cutting a release, shipping a new version to Windows users, or when a Windows user reports they are stuck on an old version.… - 95prepare-release
End-to-end release automation — reads commits since last tag, infers semver bump, drafts changelog, creates release PR, merges it, waits for CI green, tags, and monitors the Docker build to completion. Use when the user says: prepare release, cut a release, bump version, create…