diff --git a/.gitignore b/.gitignore index 61a1b80..c766424 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ *.pyc .env -.vscode \ No newline at end of file +.vscode +build \ No newline at end of file diff --git a/dist/main.exe b/dist/main.exe new file mode 100644 index 0000000..ce4ff98 Binary files /dev/null and b/dist/main.exe differ diff --git a/main.spec b/main.spec new file mode 100644 index 0000000..67697f3 --- /dev/null +++ b/main.spec @@ -0,0 +1,49 @@ +# -*- mode: python ; coding: utf-8 -*- +import os +from PyInstaller.utils.hooks import collect_submodules + +hiddenimports = [ + 'win32com.gen_py', + 'PyQt6.QtWebChannel', + 'PyQt6.QtWebEngineWidgets', +] + collect_submodules('parser') + +datas = [ + ('.env', '.'), # Копируем .env в корень приложения после распаковки +] + +a = Analysis( + ['main.py'], + pathex=[os.path.abspath('.')], + binaries=[], + datas=datas, + hiddenimports=hiddenimports, + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='main', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +)