diff --git a/distribution/windows/build.py b/distribution/windows/build.py index cb4e1d00..473885fc 100644 --- a/distribution/windows/build.py +++ b/distribution/windows/build.py @@ -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" diff --git a/distribution/windows/huntarr.spec b/distribution/windows/huntarr.spec index 38483806..781594a4 100644 --- a/distribution/windows/huntarr.spec +++ b/distribution/windows/huntarr.spec @@ -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={}, diff --git a/requirements.txt b/requirements.txt index 84f785c0..41d30898 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +apprise==1.6.0 # Added for notification support +markdown==3.4.3 # Required by apprise +pyyaml==6.0 # Required by apprise \ No newline at end of file