Build¶
Host binary¶
Unit binary¶
The unit binary is cross-compiled for QNX 6.5 ARMv7 in a Docker image:
It needs Docker Desktop with Rosetta enabled on Apple silicon and the
qnx65-armv7-toolchain:8.5-rust image.
SD-card image¶
Output:
scripts/bundle.sh builds the host binary, stages the unit binary, builds the official collection and
calls mibpkg swdl-card. Pass --signed-header FILE to make the engineering-menu entry accepted.
Web assets¶
The front end is React + TypeScript + Tailwind with shadcn/ui components under web/src/. Vite
builds it into web/dist (index.html, style.css, app.js); those three files are committed and
embedded in the binary by src/web/assets.rs. The Rust build never runs npm, so a checkout builds
without Node installed.
When you change anything under web/src or web/index.html, rebuild and commit web/dist:
Run the built front end against a local fixture:
scripts/web-fixture.sh /tmp/mibpkg-fixture
MIBPKG_WEB_DIR=web/dist ./target/debug/mibpkg --root /tmp/mibpkg-fixture web
Layout¶
| Path | What it is |
|---|---|
src/cli.rs |
Command dispatch and host commands |
src/install.rs |
Install, update, remove, rollback |
src/manifest.rs |
manifest.toml parsing and validation |
src/archive.rs |
.mpk pack/read/extract |
src/publish.rs |
release and verify |
src/index.rs |
Collections and index.json |
src/supervisor.rs |
Service supervision |
src/conditions.rs |
Start conditions |
src/web/ |
Web server and API |
src/mibsdk/ |
SDK, plugin and icon package handling |
src/gem*, src/hook.rs |
GEM screens and boot hook |
web/ |
Web interface source |
packaging/ |
Official manifest, CA bundle, source list |
scripts/ |
Build, bundle and release helpers |
shell/ |
Boot and GEM scripts installed on the unit |