diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 330ac4d..8e0fc8d 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -45,21 +45,25 @@ jobs: dir DellMonitorControl\bin\Release\net9.0-windows - name: Build Installer - shell: powershell + shell: cmd + working-directory: DellMonitorControl 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 "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 with verbose output..." - & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /V9 "MonitorControl.iss" 2>&1 - Write-Host "ISCC exit code: $LASTEXITCODE" - Write-Host "Listing installer directory:" - Get-ChildItem "installer" - Pop-Location + echo Current directory: + cd + echo. + echo ISS file exists: + if exist MonitorControl.iss (echo YES) else (echo NO) + echo. + echo Creating installer directory... + mkdir installer 2>nul + echo. + echo Running Inno Setup... + "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" MonitorControl.iss + echo. + echo ISCC exit code: %ERRORLEVEL% + echo. + echo Installer directory contents: + dir installer - name: Create Release shell: powershell