Add GUI runner and packaging docs

This commit is contained in:
thePR0M3TH3AN
2025-07-17 21:21:05 -04:00
parent ecf8f4e722
commit fac31cd99f
4 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Packaging the GUI with Briefcase
This project uses [BeeWare's Briefcase](https://beeware.org) to generate
platformnative installers. Once your development environment is set up,
package the GUI by running the following commands from the repository root:
```bash
# Create the application scaffold for your platform
briefcase create
# Compile dependencies and produce a distributable bundle
briefcase build
# Run the packaged application
briefcase run
```
`briefcase create` only needs to be executed once per platform. After the
initial creation step you can repeatedly run `briefcase build` followed by
`briefcase run` to test your packaged application on Windows, macOS or Linux.

View File

@@ -4,6 +4,7 @@ version = "0.1.0"
[project.scripts]
seedpass = "seedpass.cli:app"
seedpass-gui = "seedpass_gui.app:main"
[tool.mypy]
python_version = "3.11"

4
src/run_gui.py Normal file
View File

@@ -0,0 +1,4 @@
from seedpass_gui.app import main
if __name__ == "__main__":
main()

View File

@@ -197,3 +197,8 @@ class SeedPassApp(toga.App):
)
self.main_window = None
self.lock_window.show()
def main() -> None: # pragma: no cover - GUI bootstrap
"""Run the BeeWare application."""
SeedPassApp().main_loop()