Improve MSI build error handling and fix FFmpeg setup

Replaces PowerShell try/catch with exit code checks for MSI build steps in Windows workflow for clearer error reporting. Removes the install_icon option from FFmpeg MSI setup to address potential build failures.
This commit is contained in:
Your Name
2025-08-27 14:22:54 +03:00
parent c91768aec4
commit 498e6ae655
2 changed files with 10 additions and 9 deletions
+8 -8
View File
@@ -88,11 +88,11 @@ jobs:
# Build MSI installer with error handling
Write-Host "Building standard MSI installer..."
try {
python build\windows\setup.py bdist_msi
python build\windows\setup.py bdist_msi
if ($LASTEXITCODE -eq 0) {
Write-Host "Standard MSI build completed successfully"
} catch {
Write-Host "Error building standard MSI: $($_.Exception.Message)"
} else {
Write-Host "Error building standard MSI - exit code: $LASTEXITCODE"
# Continue anyway to try ZIP creation
}
@@ -171,11 +171,11 @@ jobs:
# Build MSI installer with FFmpeg and error handling
Write-Host "Building FFmpeg MSI installer..."
try {
python build\windows\setup-ffmpeg.py bdist_msi
python build\windows\setup-ffmpeg.py bdist_msi
if ($LASTEXITCODE -eq 0) {
Write-Host "FFmpeg MSI build completed successfully"
} catch {
Write-Host "Error building FFmpeg MSI: $($_.Exception.Message)"
} else {
Write-Host "Error building FFmpeg MSI - exit code: $LASTEXITCODE"
# Continue anyway to try ZIP creation
}