Skip to content

Commit

Permalink
Fix pyinstaller to include tkdnd and sv_ttk
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePromidius committed Feb 20, 2024
1 parent c64e576 commit 34981a1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions MangaManager/MangaManager.spec
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_all

datas = []
binaries = []
hiddenimports = ['PIL._tkinter_finder','tkinterdnd2.TkinterDnD']
collects = [collect_all('sv_ttk'),collect_all('tkinterdnd2')]
for ret in collects:
datas += ret[0]
binaries += ret[1]
hiddenimports += ret[2]

block_cipher = None
added_files = [
( 'res/*', 'res'),
('ExternalSources', 'ExternalSources'),
('Extensions', 'Extensions')
]
] +datas

a = Analysis(
['main.py'],
pathex=[],
binaries=[],
binaries=binaries,
datas=added_files,
hiddenimports=['PIL._tkinter_finder'],
hiddenimports=hiddenimports,
hookspath=['pyinstaller_hooks'],
hooksconfig={},
runtime_hooks=[],
Expand Down

0 comments on commit 34981a1

Please sign in to comment.