@@ -139,7 +139,18 @@ jobs:
139139 return VERSION
140140 EOF
141141
142- - name : Check files before build
142+ - name : Check files before build (Windows)
143+ if : matrix.os == 'windows-latest'
144+ run : |
145+ echo "Checking for required files:"
146+ Get-ChildItem -Path app_icon.png, app_icon.ico, main.py, glimpse.spec -ErrorAction SilentlyContinue | Format-Table Name, Length, LastWriteTime
147+ if (-not (Test-Path app_icon.png) -or -not (Test-Path app_icon.ico) -or -not (Test-Path main.py) -or -not (Test-Path glimpse.spec)) {
148+ echo "Some files missing"
149+ }
150+ shell : powershell
151+
152+ - name : Check files before build (Unix)
153+ if : matrix.os != 'windows-latest'
143154 run : |
144155 echo "Checking for required files:"
145156 ls -la app_icon.png app_icon.ico main.py glimpse.spec || echo "Some files missing"
@@ -151,12 +162,20 @@ jobs:
151162 echo "Linux build completed. Contents of dist:"
152163 ls -la dist/
153164
154- - name : Build executable (Windows/macOS )
155- if : matrix.os != 'ubuntu -latest'
165+ - name : Build executable (Windows)
166+ if : matrix.os == 'windows -latest'
156167 run : |
157168 pyinstaller glimpse.spec
158169 echo "Build completed. Contents of dist:"
159- ls -la dist/ || dir dist
170+ Get-ChildItem dist -Force
171+ shell : powershell
172+
173+ - name : Build executable (macOS)
174+ if : matrix.os == 'macos-latest'
175+ run : |
176+ pyinstaller glimpse.spec
177+ echo "Build completed. Contents of dist:"
178+ ls -la dist/
160179
161180 - name : Get architecture (Windows)
162181 if : matrix.os == 'windows-latest'
@@ -327,18 +346,23 @@ jobs:
327346 -format UDZO \
328347 glimpse-${{ needs.semantic-release.outputs.new-release-version }}-macos-${{ steps.arch-macos.outputs.arch }}.dmg
329348
330- - name : Verify artifacts before upload
349+ - name : Verify artifacts before upload (Windows)
350+ if : matrix.os == 'windows-latest'
351+ run : |
352+ echo "=== FILES AVAILABLE FOR UPLOAD ==="
353+ Get-ChildItem . -Filter "glimpse-*" -Force | Select-Object Name, Length, LastWriteTime
354+ echo ""
355+ echo "=== ALL FILES IN CURRENT DIRECTORY ==="
356+ Get-ChildItem . -Force
357+ shell : powershell
358+
359+ - name : Verify artifacts before upload (Unix)
360+ if : matrix.os != 'windows-latest'
331361 run : |
332362 echo "=== FILES AVAILABLE FOR UPLOAD ==="
333363 ls -la glimpse-* 2>/dev/null || echo "No glimpse-* files found with ls"
334-
335- # Try Windows-specific check
336- if [ "${{ matrix.os }}" = "windows-latest" ]; then
337- powershell "Get-ChildItem . -Filter 'glimpse-*' -Force | Select-Object Name, Length, LastWriteTime"
338- fi
339-
340364 echo "=== ALL FILES IN CURRENT DIRECTORY ==="
341- ls -la || dir
365+ ls -la
342366
343367 - name : Upload artifacts
344368 uses : actions/upload-artifact@v4
0 commit comments