Skip to content

Commit de614d6

Browse files
authored
Update build.yml
1 parent 31e04ca commit de614d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@ jobs:
155155
if: startsWith(github.ref, 'refs/tags/') && matrix.enable_gui == true
156156
run: |
157157
if [ "${{ matrix.goos }}" == "windows" ]; then
158-
pyinstaller --onefile --windowed --name ECHWorkersGUI gui.py
158+
pyinstaller --onefile --windowed --name ECHWorkersGUI --hidden-import=PyQt5 gui.py
159159
elif [ "${{ matrix.goos }}" == "linux" ]; then
160160
if python -c "import PyQt5.QtWidgets" 2>/dev/null; then
161-
pyinstaller --onefile --name ECHWorkersGUI gui.py
161+
pyinstaller --onefile --name ECHWorkersGUI --hidden-import=PyQt5 gui.py
162162
else
163163
echo "PyQt5 not available, skipping GUI build for Linux"
164164
echo "Only Go executable will be included"
165165
fi
166166
else
167-
pyinstaller --onefile --name ECHWorkersGUI gui.py
167+
pyinstaller --onefile --name ECHWorkersGUI --hidden-import=PyQt5 gui.py
168168
fi
169169
shell: bash
170170

0 commit comments

Comments
 (0)