Add desktop GUI and build scripts for DocFinder#14
Merged
filippostanghellini merged 4 commits intomainfrom Nov 24, 2025
Merged
Conversation
Introduces a native desktop GUI launcher using pywebview, with platform-specific build scripts and GitHub Actions workflow for packaging macOS, Windows, and Linux apps. Updates Makefile, README, and pyproject.toml to support GUI installation and usage. Improves config handling for default database paths and enhances error messaging in the web API.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a native desktop GUI launcher using pywebview, with platform-specific build scripts and GitHub Actions workflow for packaging macOS, Windows, and Linux apps. Updates Makefile, README, and pyproject.toml to support GUI installation and usage. Improves config handling for default database paths and enhances error messaging in the web API.
Description
This PR adds a complete desktop application experience to DocFinder. Users can now download and install DocFinder as a native app on macOS, Windows, and Linux without needing Python installed. The app uses pywebview to wrap the existing FastAPI web interface in a native window.
Type of Change
Related Issues
Related to #13
Changes Made
src/docfinder/gui.py- Desktop GUI launcher using pywebviewDocFinder.spec- PyInstaller configuration for bundlingscripts/build-macos.sh- macOS build script (creates .app and .dmg)scripts/build-windows.ps1- Windows build script (creates NSIS installer)scripts/build-linux.sh- Linux build script (creates AppImage).github/workflows/build-desktop.yml- CI workflow for multi-platform buildspyproject.toml- Add [gui] extras and docfinder-gui entry pointMakefile- Add install-gui and build-* targetsREADME.md- Add desktop installation instructionsconfig.py- Smart database path resolution for frozen appsweb/app.py- Improved error messages for missing databaseTesting
Manual Testing
make build-macosChecklist
ruff checkandruff format)Screenshots (if applicable)
Desktop app running on macOS with native window wrapper.
Additional Context
The desktop app stores its database in
~/Documents/DocFinder/docfinder.dbto ensure data persists across app updates. The app is unsigned, so users need to bypass Gatekeeper (macOS) or SmartScreen (Windows) on first launch - instructions are included in the README.Deployment Notes
DocFinder-macOS.dmg,DocFinder-Windows-Setup.exe,DocFinder-Linux-x86_64.AppImagev1.0.0