@@ -139,15 +139,24 @@ jobs:
139139 return VERSION
140140 EOF
141141
142+ - name : Check files before build
143+ run : |
144+ echo "Checking for required files:"
145+ ls -la app_icon.png app_icon.ico main.py glimpse.spec || echo "Some files missing"
146+
142147 - name : Build executable (Linux with virtual display)
143148 if : matrix.os == 'ubuntu-latest'
144149 run : |
145150 xvfb-run -a pyinstaller glimpse.spec
151+ echo "Linux build completed. Contents of dist:"
152+ ls -la dist/
146153
147154 - name : Build executable (Windows/macOS)
148155 if : matrix.os != 'ubuntu-latest'
149156 run : |
150157 pyinstaller glimpse.spec
158+ echo "Build completed. Contents of dist:"
159+ ls -la dist/ || dir dist
151160
152161 - name : Get architecture (Windows)
153162 if : matrix.os == 'windows-latest'
@@ -156,10 +165,34 @@ jobs:
156165 $arch = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "x64" } else { "x86" }
157166 echo "arch=$arch" >> $env:GITHUB_OUTPUT
158167
159- - name : Rename executable (Windows)
168+ - name : Rename and verify executable (Windows)
160169 if : matrix.os == 'windows-latest'
161170 run : |
162- move dist\glimpse.exe dist\glimpse-${{ needs.semantic-release.outputs.new-release-version }}-windows-${{ steps.arch-windows.outputs.arch }}.exe
171+ echo "Contents of dist directory:"
172+ Get-ChildItem dist -Force
173+ echo ""
174+ if (Test-Path "dist\glimpse.exe") {
175+ $newName = "glimpse-${{ needs.semantic-release.outputs.new-release-version }}-windows-${{ steps.arch-windows.outputs.arch }}.exe"
176+ Copy-Item "dist\glimpse.exe" $newName
177+ echo "Successfully created $newName"
178+ echo "File created:"
179+ Get-ChildItem $newName -Force
180+ } elseif (Test-Path "dist\glimpse") {
181+ echo "Found 'glimpse' without .exe extension - renaming it"
182+ $newName = "glimpse-${{ needs.semantic-release.outputs.new-release-version }}-windows-${{ steps.arch-windows.outputs.arch }}.exe"
183+ Copy-Item "dist\glimpse" $newName
184+ echo "Successfully created $newName from 'glimpse'"
185+ echo "File created:"
186+ Get-ChildItem $newName -Force
187+ } else {
188+ echo "ERROR: Neither dist\glimpse.exe nor dist\glimpse found!"
189+ echo "Full contents of dist:"
190+ Get-ChildItem dist -Recurse -Force
191+ exit 1
192+ }
193+ echo ""
194+ echo "Final directory contents:"
195+ Get-ChildItem . -Force
163196
164197 - name : Get architecture (Linux)
165198 if : matrix.os == 'ubuntu-latest'
@@ -287,6 +320,19 @@ jobs:
287320 -format UDZO \
288321 glimpse-${{ needs.semantic-release.outputs.new-release-version }}-macos-${{ steps.arch-macos.outputs.arch }}.dmg
289322
323+ - name : Verify artifacts before upload
324+ run : |
325+ echo "=== FILES AVAILABLE FOR UPLOAD ==="
326+ ls -la glimpse-* 2>/dev/null || echo "No glimpse-* files found with ls"
327+
328+ # Try Windows-specific check
329+ if [ "${{ matrix.os }}" = "windows-latest" ]; then
330+ powershell "Get-ChildItem . -Filter 'glimpse-*' -Force | Select-Object Name, Length, LastWriteTime"
331+ fi
332+
333+ echo "=== ALL FILES IN CURRENT DIRECTORY ==="
334+ ls -la || dir
335+
290336 - name : Upload artifacts
291337 uses : actions/upload-artifact@v4
292338 with :
0 commit comments