From 950e484af66ec28c2f0f845e668b271ef40469ab Mon Sep 17 00:00:00 2001 From: RCD <90105158+Finesssee@users.noreply.github.com> Date: Sun, 29 Mar 2026 15:01:07 +0700 Subject: [PATCH] ci: allow dev versions in Windows installer builds --- .github/workflows/release.yml | 8 +++++--- installer/proxypilot.iss | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43675dd9..bd47f82c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,16 +53,18 @@ jobs: id: version run: | if ("${{ github.event.inputs.version }}" -ne "") { - echo "VERSION=${{ github.event.inputs.version }}" >> $env:GITHUB_OUTPUT + $version = "${{ github.event.inputs.version }}" } else { $tag = "${{ github.ref_name }}" $version = $tag -replace '^v', '' - echo "VERSION=$version" >> $env:GITHUB_OUTPUT } + $versionInfo = $version -replace '^v', '' -replace '-dev-', '.' + echo "VERSION=$version" >> $env:GITHUB_OUTPUT + echo "VERSION_INFO=$versionInfo" >> $env:GITHUB_OUTPUT - name: Build Inno Setup Installer run: | - & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DAppVersion="${{ steps.version.outputs.VERSION }}" installer\proxypilot.iss + & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DAppVersion="${{ steps.version.outputs.VERSION }}" /DVersionInfoVersion="${{ steps.version.outputs.VERSION_INFO }}" installer\proxypilot.iss - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/installer/proxypilot.iss b/installer/proxypilot.iss index a53d0496..3db1389a 100644 --- a/installer/proxypilot.iss +++ b/installer/proxypilot.iss @@ -2,6 +2,9 @@ #ifndef AppVersion #define AppVersion "0.1.0" #endif +#ifndef VersionInfoVersion + #define VersionInfoVersion AppVersion +#endif #ifndef RepoRoot #define RepoRoot ".." #endif @@ -56,7 +59,7 @@ OutputBaseFilename=ProxyPilot-{#AppVersion}-Setup AppCopyright=MIT License - ProxyPilot Contributors ; --- Version Info Embedded in Installer --- -VersionInfoVersion={#AppVersion} +VersionInfoVersion={#VersionInfoVersion} VersionInfoCompany=ProxyPilot VersionInfoDescription=ProxyPilot Installer - Local AI Proxy VersionInfoTextVersion={#AppVersion}