Skip to content

Commit 1cf6593

Browse files
committed
fixed app icon
1 parent 2cc45b1 commit 1cf6593

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

.github/workflows/build-macos.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,19 @@ jobs:
9696
- name: Validate version
9797
run: python scripts/validate_version.py
9898

99+
- name: Generate application icons
100+
run: |
101+
echo "=== Generating application icons (taskbar/dock) ==="
102+
python scripts/generate_icons.py
103+
if [ -f build/icon.icns ]; then
104+
echo "[OK] icon.icns created for macOS"
105+
elif [ -f build/icon.ico ]; then
106+
echo "[OK] icon.ico created (ICNS may need manual conversion on macOS)"
107+
else
108+
echo "ERROR: No icon file found after generate_icons.py"
109+
exit 1
110+
fi
111+
99112
- name: Build with PyInstaller
100113
run: |
101114
python scripts/build_pyinstaller.py

.github/workflows/build-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ jobs:
148148
python scripts/validate_version.py
149149
Write-Host "Version validation completed"
150150
151+
- name: Generate application icons
152+
run: |
153+
Write-Host "=== Generating application icons (taskbar/dock) ==="
154+
python scripts/generate_icons.py
155+
if (Test-Path "build\icon.ico") {
156+
Write-Host "[OK] icon.ico created for Windows"
157+
} else {
158+
Write-Error "icon.ico not found after generate_icons.py"
159+
exit 1
160+
}
161+
151162
- name: Verify Python DLL exists
152163
run: |
153164
Write-Host "=== DEBUG: Verifying Python DLL ==="

requirements-build.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ openpyxl==3.1.5
5151
# Build tool (PyInstaller for packaging)
5252
pyinstaller==6.17.0
5353

54+
# Icon generation (generate_icons.py: logo.png -> icon.ico / icon.icns)
55+
Pillow==11.0.0
56+

scripts/generate_icons.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
- build/icon.ico (Windows)
88
- build/icon.icns (macOS)
99
10-
This script should be run before building the application.
10+
Run before building the application (CI does this automatically).
11+
For local development: run once so the taskbar/dock shows the CuePoint logo
12+
when you run from run_gui.bat or run_gui.command:
13+
python scripts/generate_icons.py
1114
"""
1215

1316
import sys

0 commit comments

Comments
 (0)