ci(windows): update release-windows.yml to trigger on v* tags and compile Inno Setup installers

This commit is contained in:
2026-09-04 20:54:40 +02:00
parent 8cb3089e8e
commit 11f16ed8e1
+25 -8
View File
@@ -1,12 +1,9 @@
name: Release Windows Binaries name: Release Windows Binaries & Installers
on: on:
release:
types: [published, created]
push: push:
tags: tags:
- '*' - 'v*'
- '**'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag: tag:
@@ -15,10 +12,10 @@ on:
jobs: jobs:
release-windows: release-windows:
name: Build & Release Windows Binaries name: Build & Release Windows Binaries & Installers
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout Code - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
@@ -37,7 +34,7 @@ jobs:
} }
} }
& $py -m pip install --upgrade pip & $py -m pip install --upgrade pip
& $py -m pip install pyinstaller -r compilation/requirements.txt & $py -m pip install pyinstaller cryptography -r compilation/requirements.txt
- name: Compile Standalone Windows Binaries - name: Compile Standalone Windows Binaries
shell: powershell shell: powershell
@@ -50,6 +47,26 @@ jobs:
} }
& $py compilation/package_dist.py --target windows & $py compilation/package_dist.py --target windows
- name: Compile Inno Setup Installers
shell: powershell
run: |
$iscc = $null
if (Test-Path "C:\Program Files (x86)\Inno Setup 6\ISCC.exe") {
$iscc = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
} elseif (Test-Path "C:\Program Files\Inno Setup 6\ISCC.exe") {
$iscc = "C:\Program Files\Inno Setup 6\ISCC.exe"
} elseif (Get-Command "ISCC.exe" -ErrorAction SilentlyContinue) {
$iscc = "ISCC.exe"
}
if ($iscc) {
Write-Host "[*] Compiling Windows Inno Setup installers using $iscc..."
& $iscc compilation/installer_client.iss
& $iscc compilation/installer_server.iss
} else {
Write-Host "[!] Inno Setup compiler (ISCC.exe) not found on runner host. Skipping installer compilation."
}
- name: Publish Windows Release Assets - name: Publish Windows Release Assets
shell: powershell shell: powershell
env: env: