mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
ci: allow dev versions in Windows installer builds
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user