Skip to content

Commit

Permalink
Adding hook file for pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Jun 5, 2024
1 parent d3c8a9b commit 46ac8c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Linux/hook-sys.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from lazagne.config.manage_modules import get_modules_names
from lazagne.softwares.browsers.chromium_browsers import chromium_based_module_location
from lazagne.softwares.browsers.firefox_browsers import mozilla_module_location

all_hidden_imports_module_names = get_modules_names() + [mozilla_module_location, chromium_based_module_location]
hiddenimports = [package_name for package_name, module_name in all_hidden_imports_module_names]

if __name__ == "__main__":
print("\r\n".join(hiddenimports))
9 changes: 9 additions & 0 deletions Mac/hook-sys.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from lazagne.config.manage_modules import get_modules_names
from lazagne.softwares.browsers.chromium_browsers import chromium_based_module_location
from lazagne.softwares.browsers.firefox_browsers import mozilla_module_location

all_hidden_imports_module_names = get_modules_names() + [mozilla_module_location, chromium_based_module_location]
hiddenimports = [package_name for package_name, module_name in all_hidden_imports_module_names]

if __name__ == "__main__":
print("\r\n".join(hiddenimports))
9 changes: 9 additions & 0 deletions Windows/hook-sys.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from lazagne.config.manage_modules import get_modules_names
from lazagne.softwares.browsers.chromium_browsers import chromium_based_module_location
from lazagne.softwares.browsers.firefox_browsers import mozilla_module_location

all_hidden_imports_module_names = get_modules_names() + [mozilla_module_location, chromium_based_module_location]
hiddenimports = [package_name for package_name, module_name in all_hidden_imports_module_names]

if __name__ == "__main__":
print("\r\n".join(hiddenimports))

0 comments on commit 46ac8c6

Please sign in to comment.