diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index bfe8f03..7e2afa8 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -48,12 +48,18 @@ jobs: shell: powershell run: | Write-Host "Current directory: $(Get-Location)" + Push-Location DellMonitorControl + Write-Host "Changed to: $(Get-Location)" Write-Host "Creating installer output directory..." - New-Item -ItemType Directory -Force -Path "DellMonitorControl\installer" + New-Item -ItemType Directory -Force -Path "installer" | Out-Null + Write-Host "Checking source files exist..." + Get-ChildItem "bin\Release\net9.0-windows" | Select-Object -First 5 Write-Host "Running Inno Setup..." - & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /O"DellMonitorControl\installer" "DellMonitorControl\MonitorControl.iss" + $process = Start-Process -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList "MonitorControl.iss" -Wait -NoNewWindow -PassThru + Write-Host "ISCC exit code: $($process.ExitCode)" Write-Host "Listing installer directory:" - Get-ChildItem "DellMonitorControl\installer" + Get-ChildItem "installer" + Pop-Location - name: Create Release shell: powershell