Files
piik/cmd/piik-app/DEVELOPMENT.md
T
AAA ce6091a49a fix(core): keep independent operations recoverable
Scope file failures to their requests, preserve accurate route failures and validate Server settings before initialization. Repair source capability and observation lifetimes, restart failed WASM loading, and align playback, input and read-marker state with the owning operation.
2026-11-21 11:15:48 -05:00

3.1 KiB

Piik App Development

Build, package and verify the shared Rust App from the repository root. The App guide and its Chinese counterpart describe published releases.

Run From Source

Install the tools in Run from source, then:

npm ci
npm run build:web

Follow the Rust App startup owner for capture-enabled builds, local approval, saved sites and the tunnel helper. The App and Server consume the same Rust core and shared Web bundle; native capture is integrated through the Rust Native adapter.

On Windows, use the stable Cargo output or a fixed CARGO_TARGET_DIR for network executables. See verification entrypoints for the normal npm run check, focused Rust checks and existing Browser/Native acceptance owners. Physical capture/input acceptance remains separate from compilation and package smoke checks.

Packaging

The distribution workflow owns platform prerequisites, App assembly and candidate checks. Packaging uses the built Rust App, sibling web/ tree, REVISION, licenses and the optional pinned runtime/tunnel/cloudflared helper. On macOS these live inside Piik App.app/Contents/MacOS; move the whole bundle when installing it. Creating a candidate does not publish it. Published App/Site interoperability remains governed by the compatibility contract.

Optional Gamepad Drivers

App packaging does not download or include optional input SDKs or drivers. Platform support, permissions and installation remain in the gamepad setup guide and Native platform owner.

Desktop Icons

The Windows x64 App build embeds the shared Piik ICO through the channel-server build script. Linux packages include the standard share/applications desktop entry and hicolor icon. macOS packages include Piik App.app with an ICNS resource, the App executable and its helpers. For terminal use, the executable is "Piik App.app/Contents/MacOS/piik-app".

The editable badge is public/favicon.svg. Export it at 16/24/32/48/64/128/256 px as PNG entries in cmd/piik-app/piik.ico; the package builder derives Linux and macOS icons from those entries. Keep the website exports in sync: public/favicon.png at 96 px, and public/favicon.ico with 16/32/48 px entries. Check actual small sizes on light and dark backgrounds. Render the SVG at each target size so its small-icon styling applies.

Checks

Use the shared Rust/Browser checks and Native checks for current source acceptance. Their finite runners own isolated profiles, test data, processes and cleanup. The historical 2.x Go gates are retained in the public 2.x source.