Skip to content

Commit f5a2ddc

Browse files
Update ci.yml
1 parent a84769c commit f5a2ddc

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ jobs:
3838
try { pip cache purge } catch { Write-Host "pip cache purge failed (ignored)" }
3939
4040
- name: Build exe
41-
# Note: We only add 'ui' because 'ui2' is now merged inside it.
42-
# Ensure you have a 'style' folder containing your .qss files.
41+
# Explanation of --add-data:
42+
# 1. "ui;ui": Copies the entire ui folder structure so imports work.
43+
# 2. "style.qss;style": Copies style.qss from root to a folder named 'style' inside the app.
44+
# (This ensures utils.py finds it if it looks for os.path.join('style', 'style.qss'))
4345
run: |
4446
pyinstaller --noconfirm --clean --windowed --onefile `
4547
--name "SoccerNetProAnalyzer" `
46-
--add-data "style;style" `
4748
--add-data "ui;ui" `
49+
--add-data "style.qss;style" `
50+
--add-data "style_day.qss;style" `
4851
"main.py"
4952
5053
- name: Upload artifact (manual runs only)
@@ -79,12 +82,13 @@ jobs:
7982
pip cache purge || true
8083
8184
- name: Build binary
82-
# Separator is ':' for macOS
85+
# Separator for add-data is ':' on macOS/Linux
8386
run: |
8487
pyinstaller --noconfirm --clean --windowed --onefile \
8588
--name "SoccerNetProAnalyzer" \
86-
--add-data "style:style" \
8789
--add-data "ui:ui" \
90+
--add-data "style.qss:style" \
91+
--add-data "style_day.qss:style" \
8892
"main.py"
8993
9094
- name: Upload artifact (manual runs only)
@@ -111,7 +115,7 @@ jobs:
111115
- name: Install system deps (Qt/OpenCV runtime)
112116
run: |
113117
sudo apt-get update
114-
sudo apt-get install -y libgl1 libglib2.0-0
118+
sudo apt-get install -y libgl1 libglib2.0-0 libxcb-cursor0
115119
116120
- name: Install requirements
117121
run: |
@@ -124,12 +128,13 @@ jobs:
124128
pip cache purge || true
125129
126130
- name: Build binary
127-
# Separator is ':' for Linux
131+
# Separator for add-data is ':' on Linux
128132
run: |
129133
pyinstaller --noconfirm --clean --windowed --onefile \
130134
--name "SoccerNetProAnalyzer" \
131-
--add-data "style:style" \
132135
--add-data "ui:ui" \
136+
--add-data "style.qss:style" \
137+
--add-data "style_day.qss:style" \
133138
"main.py"
134139
135140
- name: Upload artifact (manual runs only)

0 commit comments

Comments
 (0)