Skip to content

Desktop

nodemode-ai edited this page Nov 28, 2026 · 2 revisions

Desktop

Build it

./build_app             # macOS and Linux; build_app.bat on Windows

build_app checks the tools (Python 3.11, Node 20.19, Rust, and on Linux the WebKit build packages), installs the engine and the window, freezes the engine, runs tauri build and installs or packs the result: FormPromo in Applications on macOS, a .deb on Linux. Every step goes to build_app.log.

Step by step:

./formpromo install-desktop          # once: Rust, the Tauri CLI, PyInstaller
./formpromo build-window             # frontend/dist
./formpromo freeze                   # the frozen engine: src-tauri/engine on macOS, src-tauri/binaries elsewhere
./formpromo desktop build            # tauri build; bundles in src-tauri/target/**/bundle
./formpromo desktop dev              # the shell against a dev engine

The engine inside the app

On macOS the engine is frozen as one folder and shipped as Resources/engine (tauri.macos.conf.json); the shell starts it by path (src-tauri/src/packaged.rs), so a launch does not unpack the engine to a temporary folder first, which the sister apps measured at about a third of the one-file start time. With APPLE_SIGNING_IDENTITY set, PyInstaller signs every binary in the folder with the app's entitlements. On Windows and Linux the engine is one file, bundled as the Tauri sidecar.

Menus

On macOS the menus are native, built from the same command list the window's own menu bar uses (frontend/src/ui/commands.ts). On Windows and Linux the window draws its menu bar. Both show the same items and shortcuts.

Updates

The shell checks the formpromo-updates feed in nodemode-dev/formcompiler at start and offers a newer version in a dialog. The check stays off until plugins.updater.pubkey in src-tauri/tauri.conf.json holds the release signing key and bundle.createUpdaterArtifacts is on; an empty key means no check is made.

Preferences

Edit, Preferences holds the theme and accent, Home at start, reopening the last kit, reduce motion, the default licence and role for new assets, the agent policy, the folders the engine reads (shown, with a button to open each) and the connected Form apps. The window keeps them in its storage as formpromo.prefs; Reset puts them back as formpromo comes, keeping kits and templates.

Clone this wiki locally