Repository navigation
Add Windows desktop support and fix compiler PATH discovery - #13
blessedcursed wants to merge 3 commits into
Conversation
Resolve npm shims to the native Codex executable for startup and diagnostics. Invoke npm through Node on Windows so automatic installation does not require a shell.
Package Node and Codex for Windows, use file URLs for the backend loader, and resolve Git with where.exe. Add a native Electron startup and demo PDF smoke check.
|
Thanks for this, the PATH/Path fix looks right. A few things before merging: 1. macOS/Linux behavior must not change. 2. The same Windows issues remain in other places:
3. Stopping processes on Windows:
|
Papilot desktop can now be packaged and run on Windows, including a native installer, Windows process handling, and Codex executable discovery/bootstrap.
Fixes compiler discovery when Windows supplies
Pathinstead ofPATH. Previously the desktop backend could lose the TeX Live directory or send conflicting environment keys, reporting “xelatex was not found” even with a working installation. The launcher now preserves inherited path entries and emits one canonical PATH key on Windows.Validation:
npm run typecheckpassed.node --import tsx --test tests/desktop-runtime.test.ts).