Fixed Windows RC version generation for prerelease tags by sanitizing each version segment to numeric-only before emitting COMMA_VERSION in zoitechat.rc.tt. This prevents RC2237: numeric value expected for versions like 2.18.0-pre1.

This commit is contained in:
2026-02-16 14:48:05 -07:00
parent 3853343918
commit eb677e412c

View File

@@ -1,7 +1,7 @@
#include <winver.h>
#include "config.h"
#define COMMA_VERSION <#= [string]::Join(',', $versionParts) #>,0
#define COMMA_VERSION <#= [string]::Join(',', ($versionParts | %{ ($_ -split '[^0-9]')[0] })) #>,0
XC_ICON ICON "<#= $env:SOLUTIONDIR -replace '\\', '/' #>data/icons/zoitechat.ico"