From a33430faa08c512a297da39bab9f5d246c9df3e0 Mon Sep 17 00:00:00 2001 From: Dave Friedel Date: Sun, 4 Jan 2026 10:01:45 -0500 Subject: [PATCH] Use Push-Location and Start-Process for ISCC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/release.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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