Development Setup
Prerequisites
- Follow steps for installing Rust + Tauri here: https://tauri.app/v1/guides/getting-started/prerequisites
- Install pnpm
npm install -g pnpm
Run
pnpm install
pnpm tauri dev
Testing
Simulate boards writing PGN to a folder:
- In the app, select a Round and start a folder watch.
- Run this to automatically write a bunch of PGN to the folder:
pnpm esrun sample-data/generate/index.ts path/to/selected/folder
Formatting / Linting / Tests
pnpm format
pnpm tsc
pnpm test ## or pnpm test:watch
Icon Generation
Given a source image file, generate the icon files for the app:
pnpm tauri icon public/lichess-favicon-1024.png
Test Build
pnpm tauri build
Release artifacts are in src-tauri/target/release/bundle/
Release (for maintainers)
-
Tag the new version:
git checkout main npm version 0.x.x git push origin main --tags
-
Github workflow will build the app for each OS, create a release, and attach the artifacts.