Update main.yml

This commit is contained in:
Kvintilyanov Aleksandr
2025-03-13 14:24:26 +03:00
committed by GitHub
parent bb7845a1ab
commit 7c7bc55dbe
+10 -1
View File
@@ -37,15 +37,24 @@ jobs:
Icon=$iconPath
"@
Set-Content -Path "sfxconfig.txt" -Value $sfxConfig
& "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfxconfig.txt" -ep1 $archiveName $sourceFiles
& "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -iicon"$iconPath" -z"sfxconfig.txt" -ep1 $archiveName $sourceFiles
Remove-Item -Path "sfxconfig.txt"
- name: Verify installer creation
run: |
$archiveName = "WindeckHelper.exe"
if (-Not (Test-Path -Path $archiveName)) {
Write-Error "Установщик не создан!"
exit 1
}
- name: Upload artifact (for push or PR)
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: WindeckHelper.exe
path: WindeckHelper.exe
archive: false # Отключает архивирование в ZIP
release:
runs-on: ubuntu-latest