# Packaging the Sulcora desktop app (double-click, no Python)

So a neurosurgeon can run Sulcora without a terminal or `pip`.

## Build
```
python -m venv .venv && source .venv/bin/activate
./packaging/build_app.sh
```
Output:
- **macOS** — `packaging/dist/Sulcora.app` (drag to Applications; wrap in a `.dmg` to distribute).
- **Windows** — `packaging/dist/Sulcora/Sulcora.exe` (zip the folder, or wrap with Inno Setup for an installer).
- **Linux** — `packaging/dist/Sulcora/Sulcora`.

Build on each target OS (PyInstaller is not a cross-compiler).

## Notes
- Bundles Python + VTK + PyQt5 + numpy/scipy/scikit-image/nibabel/pydicom, so the
  target machine needs nothing preinstalled.
- The patient scan is still opened **locally** (File ▸ Open DICOM / NIfTI) and
  never leaves the machine.
- For code-signing/notarization (macOS Gatekeeper) and a Windows installer,
  sign the output with your developer certificate before distribution.
- Research software — not a medical device.
