Skip to content

Commit f130748

Browse files
committed
Add aggressive PyQt6 collection to ensure complete bundling
Use --collect-all flags to force PyInstaller to include all PyQt6 components: - PyQt6 (main package) - PyQt6-Qt6 (Qt libraries) - PyQt6-sip (SIP bindings) This ensures the executable is truly self-contained and doesn't look for PyQt6 externally.
1 parent ff5c52f commit f130748

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
pip install -r requirements-build.txt
2424
2525
- name: Build executable
26-
run: python -m PyInstaller SCUM_Server_Browser.spec
26+
run: python -m PyInstaller --collect-all PyQt6 --collect-all PyQt6-Qt6 --collect-all PyQt6-sip SCUM_Server_Browser.spec
2727

2828
- name: Create distribution package
2929
run: |

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
pip install -r requirements-build.txt
2424
2525
- name: Build executable
26-
run: python -m PyInstaller SCUM_Server_Browser.spec
26+
run: python -m PyInstaller --collect-all PyQt6 --collect-all PyQt6-Qt6 --collect-all PyQt6-sip SCUM_Server_Browser.spec
2727

2828
- name: Create distribution package
2929
run: |

build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rm -rf build dist *.spec.bak
2929

3030
# Build executable
3131
echo "🔨 Building executable..."
32-
python -m PyInstaller SCUM_Server_Browser.spec
32+
python -m PyInstaller --collect-all PyQt6 --collect-all PyQt6-Qt6 --collect-all PyQt6-sip SCUM_Server_Browser.spec
3333

3434
echo ""
3535
echo "================================================"

build_windows.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if exist "dist" rmdir /s /q dist
3131

3232
REM Build executable
3333
echo Building executable...
34-
python -m PyInstaller SCUM_Server_Browser.spec
34+
python -m PyInstaller --collect-all PyQt6 --collect-all PyQt6-Qt6 --collect-all PyQt6-sip SCUM_Server_Browser.spec
3535

3636
echo.
3737
echo ================================================

0 commit comments

Comments
 (0)