Skip to content

Building ​

How to get the source, build and run Open Stomp Manager, and work on it. For contributors; to make a release see Releasing.

The app is a Tauri program. Rust runs the pedal engine (the open-stomp library), and the interface is React and TypeScript, styled with plain CSS, shown in the system's web view. Architecture describes how the two halves talk.

Get the source ​

The library is a path dependency on a sibling checkout (app/src-tauri/Cargo.toml). Clone both side by side:

sh
git clone https://github.com/JackMechem/open-stomp-lib
git clone https://github.com/JackMechem/open-stomp-manager
cd open-stomp-manager
text
Projects/
├── open-stomp-lib/        the library: protocol, state, connection engine, protocol docs
└── open-stomp-manager/    this repo
    └── app/               the app: package.json, src/ (React), src-tauri/ (Rust)

Changes to the library are picked up by the next build; there's nothing to publish in between.

Build with Nix ​

sh
nix run                       # build and run
nix build                     # result/bin/open-stomp-manager
nix develop                   # dev shell: Rust, Node, pnpm, WebKitGTK, ALSA, amidi
  • The flake fetches the library as the open-stomp-lib input: github:JackMechem/open-stomp-lib/stable, the library's newest release, pinned in flake.lock. nix flake update open-stomp-lib moves it.

  • To build against your local checkout instead:

    sh
    nix run --override-input open-stomp-lib path:../open-stomp-lib

After changing app/pnpm-lock.yaml

The frontend's npm packages are fetched with a fixed hash (pnpmDeps in flake.nix). Set that hash to "", run nix build, and paste the hash Nix prints. CI's nix build job catches a stale hash.

Build without Nix ​

You need:

  • Rust 1.95 or newer
  • Node 22 or newer
  • pnpm, the version in app/package.json's packageManager (corepack enable picks it up)
  • On Linux, the WebKitGTK, ALSA and D-Bus headers:
sh
sudo apt install libwebkit2gtk-4.1-dev librsvg2-dev libasound2-dev libdbus-1-dev pkg-config   # Debian, Ubuntu
sudo dnf install webkit2gtk4.1-devel librsvg2-devel alsa-lib-devel dbus-devel pkgconf         # Fedora

macOS and Windows need nothing extra (Windows 10 and 11 have WebView2).

sh
cd app
pnpm install
pnpm tauri dev                                          # run, reloading as you edit
pnpm tauri dev -- -- --replay ../captures/logs/01-main-session.log --speed 8   # no pedal needed
pnpm tauri build                                        # release build and installers

Checks ​

sh
(cd app && pnpm typecheck)                 # TypeScript
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace                     # the hub's commands, the activity log, imports
(cd ../open-stomp-lib && cargo test)       # the protocol and engine tests, driven by capture logs
packaging/check-version.sh                 # version consistency

Develop ​

pnpm tauri dev (in app/) starts Vite and the app.

  • Saving a .tsx or .css file updates the window at once and keeps its state.
  • Saving a Rust file rebuilds and restarts the app.
  • Right-click → Inspect opens the web inspector (debug builds): the quickest way to try out CSS.
  • Starting on a replay (-- -- --replay <log>) doesn't connect to the pedal, so it's safe while another editor is using it.

Environment variables ​

VariableEffect
STOMP_DEV=log,import,import-ir,save,renameOpen the activity log or that dialog at startup
STOMP_DEV=devtoolsOpen the web inspector at startup (debug builds)
STOMP_DEBUG_IMPORT=<file.nam or .wav>Convert the file at startup into USER AMP/IR 10, without uploading it
STOMP_UPDATE_URL=<latest.json URL>Check this update manifest instead of the newest release's (debug builds; http allowed)

Debug builds don't check for updates at startup and never install one: Check for updates only reports what it finds.

Driving the app from scripts (Linux) ​

tools/dev/webdriver.py controls the real app through WebKitGTK's WebKitWebDriver: click, drag, type, read the frontend's state (window.__stomp in debug builds) and take screenshots. tools/dev/shot.py uses it to screenshot the app on a replayed capture, for the docs:

sh
nix develop --command tools/dev/shot.py                    # target/shots/main.png
nix develop --command tools/dev/shot.py log --dev log      # with the activity log open

Platforms and packages ​

PlatformMIDIWeb viewRelease downloads
Linux (x86_64)ALSAWebKitGTK 4.1.deb, .rpm, .AppImage
macOS 11+ (Apple Silicon + Intel)CoreMIDIWKWebView.dmg, and the .app as a .zip
Windows 10+ (x86_64)WinMMWebView2-setup.exe installer, portable .zip

pnpm tauri build makes the installers for the platform it runs on, in target/release/bundle/. Their settings (name, identifier, icons, Linux package dependencies, minimum macOS version) are in app/src-tauri/tauri.conf.json.

  • Linux: the .deb and .rpm depend on WebKitGTK, GTK, ALSA and D-Bus (D-Bus is for Bluetooth, through BlueZ). The AppImage bundles WebKitGTK, so it's much larger. The Nix package is built from the .deb's contents and wrapped so GTK finds its schemas and modules. On NVIDIA with Wayland, a blank window usually needs WEBKIT_DISABLE_DMABUF_RENDERER=1.
  • macOS: a universal app (--target universal-apple-darwin, which needs rustup target add aarch64-apple-darwin x86_64-apple-darwin), ad-hoc signed (signingIdentity: "-"), not notarized. app/src-tauri/Info.plist adds the Bluetooth usage description; macOS kills an app that uses Bluetooth without one.
  • Windows: release builds use the GUI subsystem (no console window); --help and --version attach to the launching console. The installer downloads WebView2 if it's missing (Windows 10 before 21H2); the portable .zip needs it present.

Icons are generated by app/src-tauri/icons/make_icons.py.

Continuous integration ​

.github/workflows/ci.yml runs on every push and pull request, on Linux, macOS and Windows:

  • the frontend type-check and build
  • clippy, with warnings as errors
  • the tests
  • a release build without installers

Other jobs check the minimum Rust version, nix build (which also catches a stale npm hash in flake.nix), and packaging/check-version.sh. Each job first clones open-stomp-lib next to the checkout, at the ref in OPEN_STOMP_LIB_REF (top of the workflow).

The docs site ​

The documentation site is built in open-stomp-lib from both repositories' docs: this repo's docs/ becomes the site's Manager section.

  • Its pages.yml checks this repository's main and release tags every 30 minutes and rebuilds when they change, so changes here reach the site within about half an hour.
  • No token or secret is needed.

MIT or Apache-2.0. Not affiliated with SORAN.