1010 build :
1111 strategy :
1212 matrix :
13- os : [ubuntu-latest, windows-latest, macos-latest]
14- runs-on : ${{ matrix.os }}
13+ include :
14+ - os : ubuntu-latest
15+ runner : ubuntu-latest
16+ - os : windows-latest
17+ runner : DESKTOP-22SKH22
18+ - os : macos-latest
19+ runner : macos-latest
20+ runs-on : ${{ matrix.runner }}
1521
1622 steps :
1723 - name : Checkout code
@@ -30,13 +36,13 @@ jobs:
3036
3137 # Windows-specific: Install NSIS for installer creation
3238 - name : Install NSIS (Windows only)
33- if : runner .os == 'Windows '
39+ if : matrix .os == 'windows-latest '
3440 run : |
3541 choco install nsis -y
3642
3743 # Linux-specific: Install AppImage tools
3844 - name : Install AppImage tools (Linux only)
39- if : runner .os == 'Linux '
45+ if : matrix .os == 'ubuntu-latest '
4046 run : |
4147 # Install FUSE for AppImage support
4248 sudo apt-get update
6167
6268 - name : Build with PyInstaller
6369 run : |
64- if [[ "$RUNNER_OS " == "macOS " ]]; then
70+ if [[ "${{ matrix.os }} " == "macos-latest " ]]; then
6571 # macOS with icon
6672 if [ -f "assets/logo.png" ]; then
6773 # Convert PNG to ICNS for macOS
8187 else
8288 pyinstaller --windowed src/main.py --name SilverFlagOVERSEE --distpath dist
8389 fi
84- elif [[ "$RUNNER_OS " == "Windows " ]]; then
90+ elif [[ "${{ matrix.os }} " == "windows-latest " ]]; then
8591 # Windows with icon
8692 if [ -f "assets/logo.png" ]; then
8793 # Convert PNG to ICO for Windows using Python
@@ -112,7 +118,7 @@ jobs:
112118
113119 # Create AppImage for Linux
114120 - name : Create AppImage (Linux only)
115- if : runner .os == 'Linux '
121+ if : matrix .os == 'ubuntu-latest '
116122 run : |
117123 APP_NAME=SilverFlagOVERSEE
118124 APPDIR=dist/${APP_NAME}.AppDir
@@ -181,7 +187,7 @@ jobs:
181187
182188 # Create AppleScript file separately to avoid escaping hell
183189 - name : Create AppleScript for DMG (macOS only)
184- if : runner .os == 'macOS '
190+ if : matrix .os == 'macos-latest '
185191 run : |
186192 cat > dmg_setup.applescript << 'APPLESCRIPT_EOF'
187193 tell application "Finder"
@@ -209,7 +215,7 @@ jobs:
209215 APPLESCRIPT_EOF
210216
211217 - name : Create DMG (macOS only)
212- if : runner .os == 'macOS '
218+ if : matrix .os == 'macos-latest '
213219 run : |
214220 APP_NAME=SilverFlagOVERSEE
215221 APP_PATH=dist/${APP_NAME}.app
@@ -310,7 +316,7 @@ jobs:
310316
311317 # Create NSIS installer script for Windows using Python
312318 - name : Create NSIS installer script (Windows only)
313- if : runner .os == 'Windows '
319+ if : matrix .os == 'windows-latest '
314320 run : |
315321 python -c "
316322 nsis_content = '''!define APP_NAME \"SilverFlagOVERSEE\"
@@ -409,7 +415,7 @@ jobs:
409415
410416 # Create a basic license file if it doesn't exist
411417 - name : Create LICENSE.txt for Windows installer
412- if : runner .os == 'Windows '
418+ if : matrix .os == 'windows-latest '
413419 run : |
414420 python -c "
415421 import os
@@ -443,7 +449,7 @@ jobs:
443449
444450 # Build Windows installer
445451 - name : Build Windows installer
446- if : runner .os == 'Windows '
452+ if : matrix .os == 'windows-latest '
447453 run : |
448454 makensis installer.nsi
449455
0 commit comments