Fix Windows build: add missing pkgutil hidden import
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Executable
|
- name: Build Executable
|
||||||
run: |
|
run: |
|
||||||
wine pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src --add-data "app_icon.png;." --icon=app_icon.ico src/main.py
|
wine pyinstaller --onefile --windowed --hidden-import=pkgutil --name TeletextEditor_Windows.exe --paths src --add-data "app_icon.png;." --icon=app_icon.ico src/main.py
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ def build():
|
|||||||
sys.executable, "-m", "PyInstaller",
|
sys.executable, "-m", "PyInstaller",
|
||||||
"--onefile",
|
"--onefile",
|
||||||
"--windowed",
|
"--windowed",
|
||||||
|
"--hidden-import=pkgutil",
|
||||||
"--paths", "src",
|
"--paths", "src",
|
||||||
f"--add-data=app_icon.png{sep}.",
|
f"--add-data=app_icon.png{sep}.",
|
||||||
"src/main.py"
|
"src/main.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user