05/23 Phase 8

This commit is contained in:
2026-05-23 12:05:33 -04:00
parent 8fc1878670
commit 524cdfda9a
10 changed files with 149 additions and 18 deletions
+10 -5
View File
@@ -325,11 +325,16 @@ All actions are logged to console and optionally to a log file:
---
### 🔲 Phase 8 — Packaging
- [ ] Write PyInstaller `.spec` file
- [ ] Test build on target OS (Windows / Mac / Linux)
- [ ] Bundle SQLite DB, assets, exports folder
- [ ] Test packaged app fresh install (no Python required)
### Phase 8 — Packaging
- [x] Write `core/paths.py``user_data_dir()` + `bundled_asset()` helpers (frozen-aware)
- [x] Update `db/database.py` + `core/exporter.py` to use `user_data_dir()` so DB + exports land next to the .exe when frozen
- [x] Update `main.py` to use `bundled_asset()` for icon lookup
- [x] Write `lottosight.spec` — directory build, no console, bundles `assets/`, matplotlib data, openpyxl templates, APScheduler hidden imports
- [x] Build verified: `pyinstaller lottosight.spec --clean` succeeds → `dist/LottoSight/` (~115 MB)
- [x] `assets/icon.png` confirmed present in `dist/LottoSight/_internal/assets/`
- [x] Fix `.gitignore` — un-ignore `*.spec`, add `data/*.db` + `exports/`
- [x] 165/165 tests still passing after paths refactor
- [ ] Test packaged app on a clean machine (no Python installed)
---