From 1ca982c9fccfe32bc685673e8e2b03e379f398e7 Mon Sep 17 00:00:00 2001 From: "BBL\\chuan.he" Date: Thu, 8 Aug 2024 14:33:55 +0800 Subject: [PATCH] fix:wrong exe file version Change-Id: Ibb1d0015912641d1ba16355f5842f1693c72f392 jira: none (cherry picked from commit 0a4a28935a2ef8b18774fdf4619903828b3cd34c) --- src/platform/msw/BambuStudio.rc.in | 6 +++--- version.inc | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/platform/msw/BambuStudio.rc.in b/src/platform/msw/BambuStudio.rc.in index 4774021f2..d903cd676 100644 --- a/src/platform/msw/BambuStudio.rc.in +++ b/src/platform/msw/BambuStudio.rc.in @@ -1,6 +1,6 @@ 1 VERSIONINFO -FILEVERSION @SLIC3R_VERSION@ -PRODUCTVERSION @SLIC3R_VERSION@ +FILEVERSION @SLIC3R_COMMA_SEPARATED_VERSION@ +PRODUCTVERSION @SLIC3R_COMMA_SEPARATED_VERSION@ { BLOCK "StringFileInfo" { @@ -8,7 +8,7 @@ PRODUCTVERSION @SLIC3R_VERSION@ { VALUE "CompanyName", "Bambu Research" VALUE "FileDescription", "@SLIC3R_APP_NAME@" - VALUE "FileVersion", "@SLIC3R_BUILD_ID@" + VALUE "FileVersion", "@SLIC3R_VERSION@" VALUE "ProductName", "@SLIC3R_APP_NAME@" VALUE "ProductVersion", "@SLIC3R_BUILD_ID@" VALUE "InternalName", "@SLIC3R_APP_NAME@" diff --git a/version.inc b/version.inc index 67187f7c7..602428fe9 100644 --- a/version.inc +++ b/version.inc @@ -16,3 +16,6 @@ endif() # The build_version should start from 50 in master branch set(SLIC3R_VERSION "01.09.07.52") + +string(REPLACE "." "," SLIC3R_COMMA_SEPARATED_VERSION ${SLIC3R_VERSION}) +set(SLIC3R_COMMA_SEPARATED_VERSION "${SLIC3R_COMMA_SEPARATED_VERSION}")