[build] update PyInstaller hiddenimports and py2exe modules

This commit is contained in:
Mike Fährmann
2025-10-25 18:35:55 +02:00
parent 73bf99612a
commit eed46f8dcf
2 changed files with 11 additions and 1 deletions

View File

@@ -1,11 +1,20 @@
# -*- coding: utf-8 -*-
from gallery_dl import extractor, downloader, postprocessor
import os
hiddenimports = [
package.__name__ + "." + module
f"{package.__name__}.{module}"
for package in (extractor, downloader, postprocessor)
for module in package.modules
]
base = extractor.__name__ + ".utils."
path = os.path.join(extractor.__path__[0], "utils")
hiddenimports.extend(
base + file[:-3]
for file in os.listdir(path)
if not file.startswith("__")
)
hiddenimports.append("yt_dlp")

View File

@@ -44,6 +44,7 @@ FILES = [
PACKAGES = [
"gallery_dl",
"gallery_dl.extractor",
"gallery_dl.extractor.utils",
"gallery_dl.downloader",
"gallery_dl.postprocessor",
]