Reference
Development
Build, test and release clodex.
The repository holds the Rust runtime (src/), the SolidJS Liveboard (liveboard/, ported from Zodex and embedded into the binary by build.rs), the Swift menu bar app (apps/menubar/) and this site (docs/).
Rust is never built on the maintainer’s Mac. Builds and checks run on a boatparty Linux sandbox or in GitHub Actions:
boatparty run check # Liveboard checks, cargo fmt --check, clippy -D warnings, cargo test
boatparty run cross # test suites for static Linux (musl) and Windows (under Wine)
boatparty run dist # release archives for every platform into dist/
boatparty run mac # the Apple Silicon binary
cd liveboard && bun run test:browser # Liveboard browser tests (Playwright)
apps/menubar/build.sh # Clodex.app (Swift, on a Mac)
The Liveboard must be built (cd liveboard && bun run build) before Cargo; the commands above do it for you.
Releases
Pushing a v* tag runs .github/workflows/release.yml: it cross-compiles every target with cargo zigbuild, builds Clodex.app on macOS and adds it to the macOS archives, writes SHA256SUMS, and publishes a GitHub Release. The install scripts at /install.sh and /install.ps1 download from the latest release.
tests/fixtures/test-signing-key.pem is a throwaway RSA key used only to sign test JWTs.
Docs site
This site lives in docs/ (Astro with ZueDocs) on the Vercel project clodex, served at clodex.ashray.xyz through a DNS-only Cloudflare CNAME. /install.sh and /install.ps1 are served straight from scripts/. To deploy:
cd docs && bun install --frozen-lockfile && bun run check
vercel build --prod && vercel deploy --prebuilt --prod