Repository navigation
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.
- Add the release's section to
CHANGELOG.mdand its notes file. - 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 insrc-tauri/flatpak/ai.nodemode.formchem.metainfo.xmland the version badge inREADME.md. - Push
compile_vX.Y.Zcut from that commit. - formcompiler builds macOS, Windows and Linux bundles with the frozen engine and writes
latest.jsonfor the updater when the signing key is set. - Check the draft release
formchem-vX.Y.Zon formcompiler's release page, then publish it.
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.
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 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"}}}}}'-
installmakesbackend/venvwith the engine's packages and installs the window's npm packages. -
install-desktopadds 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 buildbuilds the window, freezes the engine (one file on Linux and Windows, a flattened folder on macOS) and passes--configtotauri build. The extra config above only turns off rpm compression, which keeps the rpm step short. It wrote the.deb,.rpmand AppImage undersrc-tauri/target/release/bundle/in about 7 minutes on that machine; the installed app started under Xvfb, its engine answered/api/healthand Home rendered. - On Windows formcompiler runs
call formchem.bat install,call formchem.bat install-desktopandcall formchem.bat desktop build --config <file>, each followed byif errorlevel 1 exit /b 1; it passes the extra config as a file, because inline JSON does not survive cmd quoting.desktop buildthere builds the window, freezes a one-file engine without a console, checks it with--selfcheckand bundles the.msiand the NSIS.exe. On macOS the engine folder is signed withAPPLE_SIGNING_IDENTITYwhen 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.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents