Skip to content

Install and run

DependencyVersionNotes
Node.js20+includes npm
pnpm9+package manager (npm i -g pnpm)
Ruststable (1.77+)install via rustup

Platform extras:

  • macOS: Xcode Command Line Tools (xcode-select --install).
  • Windows: MSVC Build Tools (tick “Desktop development with C++” in the VS Installer) + WebView2 Runtime (bundled with Windows 11).
  • Linux: webkit2gtk and friends — see Tauri prerequisites.
终端窗口
pnpm install
pnpm tauri dev # first build compiles Rust (a few minutes); incremental afterwards

A window appearing means success. It launches the “dark command deck” PocketArk with the sample tools.

CommandPurpose
pnpm devVite dev server only (frontend)
pnpm tauri devTauri dev mode (compiles Rust first)
pnpm lintESLint (run after frontend changes)
pnpm buildvue-tsc --noEmit + frontend build
pnpm testvitest unit tests (pure core logic)
pnpm lint:rscargo clippy -D warnings (run after Rust changes)
pnpm fmt:rscargo fmt
pnpm test:rscargo test
pnpm tauri buildPackage the app

Convention: after frontend changes run pnpm lint && pnpm build; after Rust changes run pnpm lint:rs && pnpm fmt:rs && pnpm test:rs.

Once the window opens, do two things: rename and remove the examples — see Make it yours.