1010 build :
1111 strategy :
1212 matrix :
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 }}
13+ os : [ubuntu-latest, windows-latest, macos-latest]
14+ runs-on : ${{ matrix.os }}
2115
2216 steps :
2317 - name : Checkout code
@@ -36,13 +30,13 @@ jobs:
3630
3731 # Windows-specific: Install NSIS for installer creation
3832 - name : Install NSIS (Windows only)
39- if : matrix .os == 'windows-latest '
33+ if : runner .os == 'Windows '
4034 run : |
4135 choco install nsis -y
4236
4337 # Linux-specific: Install AppImage tools
4438 - name : Install AppImage tools (Linux only)
45- if : matrix .os == 'ubuntu-latest '
39+ if : runner .os == 'Linux '
4640 run : |
4741 # Install FUSE for AppImage support
4842 sudo apt-get update
6761
6862 - name : Build with PyInstaller
6963 run : |
70- if [[ "${{ matrix.os }} " == "macos-latest " ]]; then
64+ if [[ "$RUNNER_OS " == "macOS " ]]; then
7165 # macOS with icon
7266 if [ -f "assets/logo.png" ]; then
7367 # Convert PNG to ICNS for macOS
8781 else
8882 pyinstaller --windowed src/main.py --name SilverFlagOVERSEE --distpath dist
8983 fi
90- elif [[ "${{ matrix.os }} " == "windows-latest " ]]; then
84+ elif [[ "$RUNNER_OS " == "Windows " ]]; then
9185 # Windows with icon
9286 if [ -f "assets/logo.png" ]; then
9387 # Convert PNG to ICO for Windows using Python
@@ -118,7 +112,7 @@ jobs:
118112
119113 # Create AppImage for Linux
120114 - name : Create AppImage (Linux only)
121- if : matrix .os == 'ubuntu-latest '
115+ if : runner .os == 'Linux '
122116 run : |
123117 APP_NAME=SilverFlagOVERSEE
124118 APPDIR=dist/${APP_NAME}.AppDir
@@ -187,7 +181,7 @@ jobs:
187181
188182 # Create AppleScript file separately to avoid escaping hell
189183 - name : Create AppleScript for DMG (macOS only)
190- if : matrix .os == 'macos-latest '
184+ if : runner .os == 'macOS '
191185 run : |
192186 cat > dmg_setup.applescript << 'APPLESCRIPT_EOF'
193187 tell application "Finder"
@@ -215,7 +209,7 @@ jobs:
215209 APPLESCRIPT_EOF
216210
217211 - name : Create DMG (macOS only)
218- if : matrix .os == 'macos-latest '
212+ if : runner .os == 'macOS '
219213 run : |
220214 APP_NAME=SilverFlagOVERSEE
221215 APP_PATH=dist/${APP_NAME}.app
@@ -316,7 +310,7 @@ jobs:
316310
317311 # Create NSIS installer script for Windows using Python
318312 - name : Create NSIS installer script (Windows only)
319- if : matrix .os == 'windows-latest '
313+ if : runner .os == 'Windows '
320314 run : |
321315 python -c "
322316 nsis_content = '''!define APP_NAME \"SilverFlagOVERSEE\"
@@ -415,7 +409,7 @@ jobs:
415409
416410 # Create a basic license file if it doesn't exist
417411 - name : Create LICENSE.txt for Windows installer
418- if : matrix .os == 'windows-latest '
412+ if : runner .os == 'Windows '
419413 run : |
420414 python -c "
421415 import os
@@ -449,7 +443,7 @@ jobs:
449443
450444 # Build Windows installer
451445 - name : Build Windows installer
452- if : matrix .os == 'windows-latest '
446+ if : runner .os == 'Windows '
453447 run : |
454448 makensis installer.nsi
455449
0 commit comments