Repository navigation
Packaging and Release
formcraft is built into installers and published by formcompiler, a separate repository that holds a registry of form apps and the release workflows. FormPortal lists the result. This repository supplies a build contract and the checks formcompiler relies on. The branch rules are in .docs/BRANCHING.md.
Nothing here has been run end to end: no release has been built on macOS or Windows, and the Linux build in a sandbox is limited by which system packages are installed.
| Piece | Where it lives | Job |
|---|---|---|
| formcraft | nodemode-dev/formcraft |
the app, ci.yml, the build scripts in setup/, the notes in CHANGELOG.md
|
| formcompiler |
nodemode-ai/formcompiler (GPL, separate) |
reads the version, waits for a green ci.yml, runs ./formcraft install, ./formcraft install-desktop and ./formcraft desktop build --config FILE, signs, notarises, writes latest.json, SHA256SUMS.txt, form-app.json and the skills zip, and creates the release |
| FormPortal | separate repository | lists the app, downloads the installer for your system and connects agents |
The registry entry for formcraft (apps/formcraft.json) and the FormPortal catalogue row are written in formcompiler and FormPortal, not here. Draft change descriptions for both are kept with the planning documents. Until formcompiler enables the entry (enabled false, state prelaunch), nothing publishes.
One version, written with dots and the same everywhere. ./formcraft version lists every site and exits 1 if any disagree.
| Site | Required |
|---|---|
src-tauri/tauri.conf.json version (formcompiler reads this and it must equal the branch or tag version) |
yes |
frontend/package.json |
yes |
src-tauri/Cargo.toml |
yes |
backend/app/core/config.py VERSION
|
yes |
README.md version badge (badge/version-v0.9.0-) |
yes |
frontend/package-lock.json (two fields), src-tauri/Cargo.lock
|
checked when present |
setup/form-app.json, setup/mcpb/manifest.json
|
checked when present |
A pre-release suffix such as 0.9.0-beta.1 is accepted, and the patch number is one digit.
Day-to-day work happens on main. A release is cut by pushing a branch named compile_v<version> (for example compile_v0.9.0) whose version files equal that version. formcompiler builds only from compile_v* refs. See .docs/BRANCHING.md.
.github/workflows/ci.yml runs on pushes to main and compile_v*, on compile_v* tags and on pull requests. It has one job, check, run on ubuntu, macos and windows. Each run does npm ci, the type check and the build in frontend/, installs backend/requirements.txt, runs formcraft_engine.py --selfcheck and setup/versions.py, then the skills check (skipped with a printed line when check_skills.py is absent). It never runs cargo, compileall, shell syntax checks, a text scan or any test. There are no feature tests until the owner declares the app stable. A cancelled run on main or a compile_v* ref counts as a refusal, so those runs are never cancelled.
./formcraft install
./formcraft install-desktop
./formcraft desktop build
python3 setup/package_desktop.py linux-tar # a tarball of the deb's files, Linux onlydesktop build builds the window, freezes the engine with PyInstaller (it runs --selfcheck on the result), copies it beside the shell and runs tauri build. Installers are AppImage and deb on Linux (no rpm), dmg on macOS and NSIS on Windows. LICENSE, NOTICE and LICENSES.md ship inside the bundle, and so do assets/starter/ (as starter/, about 43 MB) and assets/demos/ (as demos/), through bundle.resources in src-tauri/tauri.conf.json. On macOS a quit with the Command+Q key closes the window first, so the unsaved-changes question is asked.
-
python3 setup/release_notes.py v0.9.0prints theCHANGELOG.mdsection for a version, without its heading. formcompiler uses it for the release text. -
python3 setup/mcpb.pypacks one.mcpbper platform and architecture, the Claude Desktop bundle, from the built engine, namedformcraft-mcp-<version>-<platform>-<arch>.mcpb(--binary,--platform,--arch,--out) andsetup/mcpb/manifest.json. The bundle runs the frozen engine with the argumentmcp. It is not part of the catalogue. -
setup/form-app.jsonis a bundled copy of the agent block (formcraft mcp) that formcompiler's generatedform-app.jsoncan supersede.
Signing keys are held by the owner and never enter this repository: the Apple identity and notarisation credentials, the Windows certificate, and the Tauri updater key pair (tauri signer generate). The private key and its password are secrets of the formcompiler workflow. The public key is merged into plugins.updater.pubkey at build time; the repository carries an empty pubkey and an endpoint placeholder. Without a key the in-app updater is inert and FormPortal remains the update path.
The in-app updater (0.9.x) adds Preferences, Updates with Check, Download and Install, using tauri-plugin-updater. It verifies every download against the public key before installing.
-
./formcraft versionreports agreement on the new version. -
CHANGELOG.mdhas a## <version> · <date>section andrelease_notes.pyprints it. -
ci.ymlis green on the commit. -
LICENSES.mdandNOTICElist every new dependency, with their Version header lines updated. - The owner holds the signing secrets in formcompiler and the registry entry is enabled.
- A beta compile branch has been tried first.
- The version file, the ref name and the registry must agree, or the release is refused.
- The three file-extension lists (
tauri.conf.json, the registryproject_extensions, FormPortal's catalogue) must stay equal. - Nothing signs, notarises or pushes from this repository.