From 11f16ed8e137f9e1b02206fa4437b27cdd45a7af Mon Sep 17 00:00:00 2001 From: max Date: Fri, 4 Sep 2026 20:54:40 +0200 Subject: [PATCH] ci(windows): update release-windows.yml to trigger on v* tags and compile Inno Setup installers --- .gitea/workflows/release-windows.yml | 35 +++++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/release-windows.yml b/.gitea/workflows/release-windows.yml index f6fcd45..269f178 100644 --- a/.gitea/workflows/release-windows.yml +++ b/.gitea/workflows/release-windows.yml @@ -1,12 +1,9 @@ -name: Release Windows Binaries +name: Release Windows Binaries & Installers on: - release: - types: [published, created] push: tags: - - '*' - - '**' + - 'v*' workflow_dispatch: inputs: tag: @@ -15,13 +12,13 @@ on: jobs: release-windows: - name: Build & Release Windows Binaries + name: Build & Release Windows Binaries & Installers runs-on: windows-latest steps: - - name: Checkout Code + - name: Checkout Repository uses: actions/checkout@v4 - - name: Set up Python + - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.12' @@ -37,7 +34,7 @@ jobs: } } & $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 shell: powershell @@ -50,6 +47,26 @@ jobs: } & $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 shell: powershell env: