···6677## Install
8899-You can download a pre-built binary from the releases or you can cross compile the app for windows xp; i'll add a nix way soonish
99+You can download a pre-built binary from the releases or build it yourself using the nix flake.
1010+1111+## Development
1212+1313+this project uses nix for cross-compilation to windows xp. the key was using an older nixpkgs (22.05) since newer mingw toolchains use windows apis that don't exist in xp.
1414+1515+### Quick Start
1616+1717+```bash
1818+# enter the dev environment (or use direnv)
1919+nix develop
2020+2121+# build the app
2222+nix build
2323+2424+# deploy to my xp vm folder
2525+deploy-to-xp
2626+```
2727+2828+### Editor Setup (Zed)
2929+3030+to get proper intellisense for win32 apis in zed:
3131+3232+```bash
3333+# generate .clangd config with proper mingw headers
3434+setup-dev
3535+3636+# restart zed
3737+```
3838+3939+this creates a `.clangd` file that points to the actual mingw-w64 headers and avoids gcc intrinsics that cause clang issues.
4040+4141+### Build Details
4242+4343+- uses mingw-w64 cross-compiler targeting i686-w64-mingw32
4444+- statically links runtime to avoid dll dependencies
4545+- targets windows xp (winver=0x0501) for maximum compatibility
4646+- older nixpkgs (22.05) prevents "procedure entry point" errors on xp
10471148~
1249