ci: allow dev versions in Windows installer builds

This commit is contained in:
RCD
2026-03-29 15:01:07 +07:00
parent 9167f0a416
commit 950e484af6
2 changed files with 9 additions and 4 deletions
+5 -3
View File
@@ -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
+4 -1
View File
@@ -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}