Add Inno Setup installers and build step

Add Inno Setup compilation to the Windows CI: the workflow now installs Inno Setup via choco, adjusts PATH, and runs iscc to compile two installers (standard and -ffmpeg) using /DMyAppVersion,/DMyAppExeName and /DSourceDir, placing outputs into repo/artifacts and failing the job on non-zero exit. Also add two new Inno Setup scripts in setup-scripts/: Setup-windows.iss and Setup-windows-ffmpeg.iss. The scripts include metadata, multi-language support, file/icon/registry/run entries, and Pascal code to create or update the user's ytsage_config.json language setting; the -ffmpeg script adds an optional task to append the app folder to the user's PATH.
This commit is contained in:
oop7
2026-02-07 19:13:47 +02:00
parent 9f1381d27e
commit 3d5dfd6d48
3 changed files with 313 additions and 0 deletions
+33
View File
@@ -449,6 +449,39 @@ jobs:
Write-Host " Artifacts directory not found!"
}
- name: Create Installer (Inno Setup)
shell: powershell
run: |
$version = "${{ steps.get_version.outputs.VERSION }}"
# Install Inno Setup
choco install innosetup --no-progress
# Add matches generally C:\Program Files (x86)\Inno Setup 6
$env:Path = "C:\Program Files (x86)\Inno Setup 6;$env:Path"
# Compile
$exeName = "YTSage-v$version.exe"
Write-Host "Compiling installer for $exeName..."
# Note: Setup-windows.iss is in setup-scripts/
# OutputDir is ..\artifacts (relative to script) -> repo/artifacts
# SourceDir is ..\dist\YTSage (relative to script) -> repo/dist/YTSage
iscc /DMyAppVersion="$version" /DMyAppExeName="$exeName" /DSourceDir="..\dist\YTSage" "setup-scripts\Setup-windows.iss"
# Compile FFmpeg Installer
$exeNameFFmpeg = "YTSage-v$version-ffmpeg.exe"
Write-Host "Compiling FFmpeg installer for $exeNameFFmpeg..."
iscc /DMyAppVersion="$version" /DMyAppExeName="$exeNameFFmpeg" /DSourceDir="..\dist\YTSage-FFmpeg" "setup-scripts\Setup-windows-ffmpeg.iss"
if ($LASTEXITCODE -eq 0) {
Write-Host "Installer compilation successful."
} else {
Write-Host "Installer compilation failed."
exit 1
}
- name: Create draft release
uses: softprops/action-gh-release@v2
with: