mirror of
https://github.com/anejolov/WinDeckHelper.git
synced 2026-06-13 12:15:10 +03:00
Update main.yml
This commit is contained in:
committed by
GitHub
parent
bb7845a1ab
commit
7c7bc55dbe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user