File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,26 +30,28 @@ def build_executable():
3030 windows_only_1 = ""
3131 else :
3232 run_command ('set PYTHONOPTIMIZE=1' )
33- windows_only_1 = '--collect-all pywinauto'
33+ windows_only_1 = '--collect-submodules pywinauto'
3434 run_command (
3535 f'{ python_executable } -m PyInstaller -D --clean --name { PROJECT_NAME } '
3636 f'--noconfirm '
37- f'--windowed --clean '
37+ f'--windowed '
3838 f'--add-data "src/core:core" '
3939 f'--add-data "{ icon_file } :." '
4040 f'--add-data "LICENSE.txt:." '
41- f'--collect-submodules core '
42- f'--collect-all psutil '
43- f'--collect-all tkinter '
44- f'--collect-all pynput '
45- f'--collect-all requests '
46- f'--collect-all PIL '
4741 f'{ windows_only_1 } '
42+ f'--collect-submodules core '
43+ f'--collect-submodules psutil '
44+ f'--collect-submodules tkinter '
45+ f'--collect-submodules pynput '
46+ f'--collect-submodules requests '
47+ f'--collect-submodules PIL '
48+ f'--exclude-module PIL.tests '
49+ f'--exclude-module tkinter.test '
4850 f'--icon={ icon_file } '
4951 f'--add-data "src/_version.py:." '
5052 f'--add-data "src/_path.py:." '
5153 f'--target-architecture { platform .machine ()} '
52- f'--debug=imports { ENTRY_POINT } '
54+ f'{ ENTRY_POINT } '
5355 )
5456
5557def clean_up ():
You can’t perform that action at this time.
0 commit comments