diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbefbfe..2097f46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,6 +64,7 @@ jobs: run: | pyinstaller --onefile --windowed --name "SCPlaytime" ` --add-data "resources;resources" ` + --hidden-import "PIL._tkinter_finder" ` sc_main.py - name: Upload Python Windows artifact @@ -103,6 +104,7 @@ jobs: run: | pyinstaller --onefile --windowed --name "SCPlaytime" \ --add-data "resources:resources" \ + --hidden-import "PIL._tkinter_finder" \ sc_main.py - name: Upload Python Linux artifact diff --git a/python/build_exe.bat b/python/build_exe.bat index 573ea20..665a131 100644 --- a/python/build_exe.bat +++ b/python/build_exe.bat @@ -72,6 +72,7 @@ pyinstaller ^ --windowed ^ --name "SCPlaytime" ^ --add-data "resources;resources" ^ + --hidden-import "PIL._tkinter_finder" ^ --clean ^ --noconfirm ^ sc_main.py