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.
This commit is contained in:
Admin9705
2025-06-14 22:58:21 -04:00
parent 0e189222a6
commit c2f63f5885
3 changed files with 41 additions and 1 deletions

View File

@@ -44,6 +44,11 @@ def build_exe():
run_command([sys.executable, "-m", "pip", "install", "-r", str(ROOT_DIR / "requirements.txt")])
run_command([sys.executable, "-m", "pip", "install", "pywin32"])
# Explicitly install apprise and its dependencies to ensure they're available
run_command([sys.executable, "-m", "pip", "install", "apprise==1.6.0"])
run_command([sys.executable, "-m", "pip", "install", "markdown==3.4.3"])
run_command([sys.executable, "-m", "pip", "install", "pyyaml==6.0"])
# Build using the spec file
spec_file = SCRIPT_DIR / "huntarr.spec"

View File

@@ -122,6 +122,39 @@ a = Analysis(
'uuid',
'pathlib',
'concurrent.futures',
# Apprise notification support
'apprise',
'apprise.common',
'apprise.conversion',
'apprise.decorators',
'apprise.locale',
'apprise.logger',
'apprise.manager',
'apprise.utils',
'apprise.URLBase',
'apprise.AppriseAsset',
'apprise.AppriseAttachment',
'apprise.AppriseConfig',
'apprise.cli',
'apprise.config',
'apprise.attachment',
'apprise.plugins',
'apprise.plugins.NotifyEmail',
'apprise.plugins.NotifyDiscord',
'apprise.plugins.NotifySlack',
'apprise.plugins.NotifyTelegram',
'apprise.plugins.NotifyWebhookJSON',
'apprise.plugins.NotifyWebhookXML',
'markdown',
'yaml',
'cryptography',
'cryptography.fernet',
'cryptography.hazmat',
'cryptography.hazmat.primitives',
'cryptography.hazmat.primitives.hashes',
'cryptography.hazmat.primitives.ciphers',
'cryptography.hazmat.backends',
'cryptography.hazmat.backends.openssl',
],
hookspath=[],
hooksconfig={},

View File

@@ -6,4 +6,6 @@ qrcode[pil]==7.4.2 # Added qrcode with PIL support
pyotp==2.9.0 # Added pyotp
pytz==2023.3 # Added for timezone support
pywin32==308; sys_platform == 'win32' # For Windows service support
apprise==1.6.0 # Added for notification support
apprise==1.6.0 # Added for notification support
markdown==3.4.3 # Required by apprise
pyyaml==6.0 # Required by apprise