49 Commits

Author SHA1 Message Date
Admin9705
6ade1d44bb fix: Windows system tray + installer upgrade cleanup
- Fix system tray import: use importlib.util to load system_tray.py by
  file path instead of package import (PyInstaller bundles resources/ as
  data, not a Python package)
- STA thread with CoInitializeEx for COM compatibility on tray thread
- Installer kills running Huntarr.exe in .onInit AND before file copy
  (double-kill pattern for reliable upgrades)
- Installer wipes old _internal/ dir and stale top-level binaries before
  copying new files (prevents stale file issues on upgrade)
- Remove SW_SHOWMINIMIZED from shortcuts (app is windowless, tray is UI)
- Add Stop Huntarr shortcut to Start Menu
- Add /api/shutdown endpoint for clean shutdown from web UI
- Add system_tray.py bundle verification in GitHub Actions
- Detailed debug logging for tray module path resolution
2026-02-18 19:17:18 -05:00
Admin9705
9fcb357a10 Fix Windows frontend missing files + system tray support
- web_server.py: Use sys._MEIPASS for PyInstaller 6.x data file paths
- windows_integration.py: Same _MEIPASS fix for Flask folder override
- huntarr.spec: Use Tree() for frontend, exclude node_modules, add pystray
- huntarr_installer.nsi: Fix File /r glob, remove empty CreateDirectory
- requirements.txt: Enable pystray for Windows
- system_tray.py: Rewrite with proper _MEIPASS icon loading + shutdown callback
- main.py: Integrate system tray on Windows frozen builds
- windows-build-nsis.yml: Add pystray install + frontend verification step
2026-02-18 18:56:25 -05:00
Admin9705
993b7433b7 Audit V 2026-02-14 10:07:42 -05:00
Admin9705
21768221dc Audit IV 2026-02-14 09:56:34 -05:00
Admin9705
848b57a1cd windows update 2026-01-29 10:42:14 -05:00
Admin9705
f8848af18a test2 2026-01-25 15:29:48 -05:00
Admin9705
d4313dd532 test 2026-01-25 15:09:46 -05:00
Admin9705
76e22b05ae Fix Windows build: Update PyYAML version in workflow and build script
The previous commit updated requirements.txt, but the CI workflow and
build script were explicitly installing PyYAML 6.0, which causes build
failures on Windows (Python 3.12). Updated both to use 6.0.1.
2026-01-25 00:53:27 -05:00
Admin9705
dcee82748b Apply PR #761: Upgrade to Python 3.12 and update dependencies
- Update Python version from 3.9/3.10 to 3.12 across all platforms
- Upgrade Flask from 3.0.0 to 3.1.2
- Upgrade requests from 2.31.0 to 2.32.5
- Upgrade waitress from 2.1.2 to 3.0.2
- Upgrade pyyaml from 6.0 to 6.0.2
- Update documentation to reflect Python 3.12+ requirement
- Update GitHub Actions workflows for macOS (ARM/Intel) and Windows
- Update Dockerfile base image to python:3.12-slim
- Update Windows setup script to require Python 3.12+

This addresses CVE's in requests and waitress, and ensures compatibility with
Python 3.12 which provides improved performance and security.
2026-01-22 18:00:28 -05:00
Admin9705
8c884a1567 Add Apprise support for macOS and Windows builds
- Updated macOS installer workflows to include Apprise and its dependencies for notification support.
- Modified Windows build script to explicitly install Apprise and its dependencies.
- Enhanced huntarr.spec to bundle Apprise data files, addressing attachment directory issues.
- Ensured all relevant Apprise modules are collected during the build process for both macOS and Windows.
2025-06-14 23:08:09 -04:00
Admin9705
c2f63f5885 Enhance notification support by adding Apprise and its dependencies
- Updated requirements.txt to include markdown and pyyaml, required by Apprise.
- Modified build.py to explicitly install Apprise and its dependencies during the build process.
- Updated huntarr.spec to include necessary Apprise modules for notification functionality.
2025-06-14 22:58:21 -04:00
Admin9705
212c5eb492 Refactor reset management by removing legacy file-based reset handling and transitioning to a database-driven approach. Update relevant modules to create and process reset requests directly in the database, enhancing reliability and consistency across the application. Adjust directory creation in Dockerfile and workflows to reflect the removal of unnecessary paths. 2025-06-12 22:47:57 -04:00
Admin9705
1c3df68f8e Update directory structure in Dockerfile and workflows to remove legacy paths and enhance configuration management. Adjust related scripts to create only necessary directories, reflecting the transition to database storage for settings. Update documentation to clarify credential management changes. 2025-06-12 22:39:00 -04:00
Admin9705
7ea0d53453 Refactor configuration management by removing legacy JSON path functions and updating scheduler and web server modules to reflect the transition to database storage for settings. Enhance error handling and logging for schedule execution. 2025-06-12 22:08:07 -04:00
Admin9705
b816114215 Refactor application to utilize SQLite database for managing configuration, statistics, schedules, and sleep data, replacing JSON file operations for enhanced performance and reliability. Update Dockerfile and workflows to reflect directory structure changes and remove unnecessary directories. 2025-06-12 21:00:22 -04:00
Admin9705
751817ff27 refactor: remove Swaparr app and related functionality 2025-06-05 13:17:07 +02:00
Huntarr Developer
7d083c784a Update Windows installer to use versioned filename format 2025-05-20 09:22:54 -04:00
Huntarr Developer
391763bd54 Add version.txt to Windows installer package 2025-05-20 08:00:54 -04:00
Huntarr Developer
562440117a feat: add Windows installer script with NSIS for Huntarr application 2025-05-19 20:18:20 -04:00
Huntarr Developer
ef9a07c29a feat: add Windows NSIS installer and GitHub Actions workflow for automated builds 2025-05-19 20:15:09 -04:00
Huntarr Developer
a775cafce6 Comment out license page in NSIS installer 2025-05-19 20:08:29 -04:00
Huntarr Developer
a075937188 Add debug echo for PROJECT_ROOT in NSIS script 2025-05-19 20:00:42 -04:00
Huntarr Developer
b5324dd70b Fix icon path in NSIS script using PROJECT_ROOT define 2025-05-19 19:57:19 -04:00
Huntarr Developer
6d0413ab7b Fix NSIS compile-time file check syntax 2025-05-19 19:53:38 -04:00
Huntarr Developer
59d6c55e8b Refine NSIS version file path handling in GHA workflow 2025-05-19 19:51:06 -04:00
Huntarr Developer
1036ef495a Fix version file handling in NSIS installer 2025-05-19 19:45:11 -04:00
Huntarr Developer
980c97f623 Switch to NSIS installer for better compatibility with GitHub Actions 2025-05-19 19:39:43 -04:00
Huntarr Developer
1474474ded feat: add Windows installer script with directory permissions and service management 2025-05-19 19:35:42 -04:00
Huntarr Developer
febaf2d26b Fix quoting issue in installer script for GitHub Actions compatibility 2025-05-19 19:35:16 -04:00
Huntarr Developer
68d60773b2 Simplify installer to use non-service mode with auto-start option 2025-05-19 19:28:16 -04:00
Huntarr Developer
0d693c551d Revert(ISS): Align [Run] section with win-555 structure 2025-05-19 18:09:10 -04:00
Huntarr Developer
1949cdade0 Fix(ISS): Alt quote for sc.exe description param 2025-05-19 18:05:14 -04:00
Huntarr Developer
2bdaf9331a Fix: Correct quote handling for sc.exe parameters in Inno Setup script 2025-05-19 18:02:16 -04:00
Huntarr Developer
47e3655a2c Fix quote formatting in installer script for icacls commands 2025-05-19 17:59:24 -04:00
Huntarr Developer
44743526fb Fix all quoting issues in the Inno Setup installer script 2025-05-19 17:48:33 -04:00
Huntarr Developer
de97dbe816 Fix Windows service installation in Inno Setup script by using SC.exe directly 2025-05-19 17:38:40 -04:00
Huntarr Developer
b55ac216cc Fix template missing errors by properly including frontend templates in PyInstaller bundle 2025-05-19 17:25:18 -04:00
Huntarr Developer
04151313dd Fix mismatched quotes in installer script parameters 2025-05-19 17:17:17 -04:00
Huntarr Developer
489a09d1ef Add -y flag to PyInstaller command to force overwriting output directory 2025-05-19 17:05:07 -04:00
Huntarr Developer
36bef9d617 Fix spec file to properly locate main.py in GitHub Actions environment 2025-05-19 16:54:33 -04:00
Huntarr Developer
1ac98f1d92 Enhance build script with better error handling and file verification 2025-05-19 16:36:40 -04:00
Huntarr Developer
bdb3383c7d Fix file paths in installer script to use absolute paths for GitHub Actions environment 2025-05-19 16:32:32 -04:00
Huntarr Developer
808cbcd730 Fix path references in installer script to ensure installer is created in the correct location 2025-05-19 16:26:28 -04:00
Huntarr Developer
aa42125d00 Fix mismatched quotes in installer script that caused build failure 2025-05-19 16:20:19 -04:00
Huntarr Developer
cd26e9c01f Enhance installer to verify executable file existence and permissions 2025-05-19 16:15:28 -04:00
Admin9705
1bc7acac4d fix: improve installer build process to handle existing directories 2025-05-19 16:02:05 -04:00
Admin9705
e5773766dc fix: update Windows build scripts with correct path handling 2025-05-19 15:56:42 -04:00
Admin9705
7314d134e6 fix: add missing main.py script and update Windows workflow 2025-05-19 15:52:08 -04:00
Admin9705
55ced08445 feat: add Windows compatibility with proper distribution structure 2025-05-19 15:49:27 -04:00