Skip to content

Commit

Permalink
Fix Windows build path and add diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
13MrBlackCat13 committed Nov 7, 2024
1 parent 1c0e027 commit f0533ae
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,33 @@ jobs:
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
Write-Host "Current directory: $(Get-Location)"
Write-Host "Contents of current directory:"
Get-ChildItem -Recurse
New-Item -ItemType Directory -Force -Path "dist"
jpackage --input target/ `
--main-jar Sudoku.jar `
--main-class App `
--type exe `
--name Sudoku `
--dest dist `
--app-version ${{ needs.prepare.outputs.version }} `
--win-dir-chooser `
--win-menu `
--win-shortcut
if (Test-Path "Sudoku.exe") {
Compress-Archive -Path "Sudoku.exe" -DestinationPath ${{ matrix.artifact_name }}
Write-Host "Contents after build:"
Get-ChildItem -Recurse
if (Test-Path "dist\Sudoku.exe") {
Write-Host "Found Sudoku.exe, creating archive..."
Compress-Archive -Path "dist\Sudoku.exe" -DestinationPath ${{ matrix.artifact_name }}
} else {
Write-Error "Sudoku.exe not found!"
Write-Host "Contents of dist directory:"
Get-ChildItem dist
Write-Error "Sudoku.exe not found in dist directory!"
exit 1
}
Expand Down

0 comments on commit f0533ae

Please sign in to comment.