From 1c0e0276d1432613b9f238ca0c188e38b7bdea86 Mon Sep 17 00:00:00 2001 From: 13MrBlackCat13 Date: Thu, 7 Nov 2024 09:52:23 +0100 Subject: [PATCH] Fix Windows build configuration --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f24fd44..033afdf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,9 +66,14 @@ jobs: --app-version ${{ needs.prepare.outputs.version }} ` --win-dir-chooser ` --win-menu ` - --win-shortcut ` - --icon src/main/resources/icon.ico - Compress-Archive -Path .\Sudoku.exe -DestinationPath ${{ matrix.artifact_name }} + --win-shortcut + + if (Test-Path "Sudoku.exe") { + Compress-Archive -Path "Sudoku.exe" -DestinationPath ${{ matrix.artifact_name }} + } else { + Write-Error "Sudoku.exe not found!" + exit 1 + } # Linux-specific steps - name: Build Linux Package