Update main.yml

This commit is contained in:
anejolov
2025-03-13 13:01:22 +02:00
committed by GitHub
parent 67b8b5c720
commit 83abbf8932
+5 -4
View File
@@ -35,15 +35,16 @@ jobs:
Set-Content -Path "sfx_config.txt" -Value $SFXConfig Set-Content -Path "sfx_config.txt" -Value $SFXConfig
$exeName = "WindeckHelper_${{ github.event.release.tag_name }}.exe" $exeName = "WindeckHelper_${{ github.event.release.tag_name }}.exe"
& "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfx_config.txt" $exeName * $exePath = "C:\path\to\your\directory\$exeName" # Полный путь к .exe файлу
& "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfx_config.txt" $exePath *
echo "EXE_NAME=$exeName" >> $GITHUB_ENV echo "EXE_NAME=$exePath" >> $GITHUB_ENV
Write-Host "EXE file created at $exeName" Write-Host "EXE file created at $exePath"
shell: powershell shell: powershell
- name: Verify EXE exists - name: Verify EXE exists
run: | run: |
if (Test-Path ${{ env.EXE_NAME }}) { if (Test-Path "${{ env.EXE_NAME }}") {
Write-Host "EXE file found: ${{ env.EXE_NAME }}" Write-Host "EXE file found: ${{ env.EXE_NAME }}"
} else { } else {
Write-Host "EXE file not found!" Write-Host "EXE file not found!"