Skip to content

Releasing

nodemode-ai edited this page Dec 6, 2026 · 2 revisions

Releasing

FormChem builds nothing in its own repository. After the version bump lands on main, push a branch compile_vX.Y.Z cut from main's head. formcompiler (nodemode-dev/formcompiler) picks it up on its 8-hourly watch or a manual run, builds every target and opens a draft release formchem-vX.Y.Z on its release page for review. formcompiler releases a commit only when ci.yml passed on that exact commit, and it holds the Apple and Windows signing identities and the updater key.

Cutting a release

  1. Add the release's section to CHANGELOG.md and its notes file.
  2. Bump the version in all nine places in one commit, chore(release): X.Y.Z (X.Y.Z), the last of the series: frontend/package.json, frontend/package-lock.json (both fields), frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the release line in src-tauri/flatpak/ai.nodemode.formchem.metainfo.xml and the version badge in README.md.
  3. Push compile_vX.Y.Z cut from that commit.
  4. formcompiler builds macOS, Windows and Linux bundles with the frozen engine and writes latest.json for the updater when the signing key is set.
  5. Check the draft release formchem-vX.Y.Z on formcompiler's release page, then publish it.

Versions

A version is X.Y.Z with dots. The last number runs 0 to 9, then the middle number rises. Each development phase is one minor version, from 0.1.0 (the family skeleton) and 0.2.0 (the family shell) to 0.12.0 (family integration); 0.13.0 is desktop, release and docs, and 0.14.0, the parity pass, is the last phase of the plan. The phases and what each brought are on Home and in CHANGELOG.md.

The registry

formcompiler reads apps/formchem.json in its own repository: contract mode, CLI formchem, version file src-tauri/tauri.conf.json, checks ci.yml, and catalog.project_extensions (.fchem and, from 0.13.0, .fcdb). That entry is its own pull request in formcompiler, never part of a FormChem pull request. The contract subcommands formcompiler calls are ./formchem install, ./formchem install-desktop and ./formchem desktop build --config <file>.

The contract as it runs

The same three steps were run on Linux from a clean checkout for 0.12.0, as formcompiler runs them:

./formchem install
./formchem install-desktop
./formchem desktop build --config '{"bundle":{"linux":{"rpm":{"compression":{"type":"none"}}}}}'
  • install makes backend/venv with the engine's packages and installs the window's npm packages.
  • install-desktop adds PyInstaller to the venv, stops with the next step if Rust or WebKitGTK is missing, installs the Tauri CLI if needed and runs ./formchem desktop check, which also fails early on a missing document icon, MIME package or desktop entry.
  • desktop build builds the window, freezes the engine (one file on Linux and Windows, a flattened folder on macOS) and passes --config to tauri build. The extra config above only turns off rpm compression, which keeps the rpm step short. It wrote the .deb, .rpm and AppImage under src-tauri/target/release/bundle/ in about 7 minutes on that machine; the installed app started under Xvfb, its engine answered /api/health and Home rendered.
  • On Windows formcompiler runs call formchem.bat install, call formchem.bat install-desktop and call formchem.bat desktop build --config <file>, each followed by if errorlevel 1 exit /b 1; it passes the extra config as a file, because inline JSON does not survive cmd quoting. desktop build there builds the window, freezes a one-file engine without a console, checks it with --selfcheck and bundles the .msi and the NSIS .exe. On macOS the engine folder is signed with APPLE_SIGNING_IDENTITY when formcompiler sets it; a release that provides a certificate without that identity would leave the engine with ad hoc signatures, which notarization refuses.

The frozen engine's data. The frozen engine carries the built window, the notices, the template library and, from 0.13.0, all of backend/app/data at app/data: the names dictionary, the HELM monomers, the demo drawings and anything added there later, each read relative to the services folder. The 0.10.0 to 0.12.0 desktop builds carried only the templates, so names and HELM failed in the app. A check after any build: in the desktop app, Insert > Structure from Name with "caffeine", Insert > Biopolymer from HELM with PEPTIDE1{G.G}$$$$, and Help > Demos showing five cards.

Dates. The release line in the Flatpak metainfo carries a date; keep it equal to the CHANGELOG heading's date when the version is cut.

Clone this wiki locally