Package

Prepare Stackhaven for desktop distribution with env config and packaging notes.

Goal for this part

Prepare Stackhaven for desktop distribution. Read PACKAGING.md for PyInstaller notes, DB backup guidance, and a ship checklist. This is not a web deploy—you ship an app users double-click.

Concepts: packaging vs hosting

Web tutorials end on a server. Desktop tutorials end on packaging: dependencies, OS Tk bindings, where the SQLite file lives, and how staff back it up. Optional PyInstaller can freeze a one-file binary; always test on each OS you support.

# optional
pip install pyinstaller
pyinstaller --onefile --windowed --name Stackhaven app.py

Try this checklist

  • Run the final snapshot and complete a borrow/return as Grace
  • Open the overdue desk as Ada
  • Skim PACKAGING.md and note where stackhaven.db is created