From b0cd59e5fb421c4f2d11e34b241f1b7e4857004a Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Sun, 17 Oct 2021 22:21:11 -0700 Subject: [PATCH] Add version number to the Windows executable https://github.com/stenzek/duckstation/issues/2083 --- src/scmversion/gen_scmversion.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scmversion/gen_scmversion.bat b/src/scmversion/gen_scmversion.bat index bc2c42f63..fee16fa8a 100644 --- a/src/scmversion/gen_scmversion.bat +++ b/src/scmversion/gen_scmversion.bat @@ -23,5 +23,11 @@ ECHO const char* g_scm_tag_str = "%TAG%"; ECHO const char* g_scm_date_str = "%CDATE%"; )>%VERSIONFILE% +powershell -Command "(gc ..\duckstation-qt\duckstation-qt.rc) -replace '1,0,0,1', '"%TAG:~0,1%","%TAG:~2,1%","%TAG:~4,4%",0' | Out-File -encoding ASCII ..\duckstation-qt\duckstation-qt.rc" +powershell -Command "(gc ..\duckstation-qt\duckstation-qt.rc) -replace '1.0.0.1', '"%TAG:~0,1%"."%TAG:~2,1%"."%TAG:~4,4%"' | Out-File -encoding ASCII ..\duckstation-qt\duckstation-qt.rc" + +powershell -Command "(gc ..\duckstation-nogui\duckstation-nogui.rc) -replace '1,0,0,1', '"%TAG:~0,1%","%TAG:~2,1%","%TAG:~4,4%",0' | Out-File -encoding ASCII ..\duckstation-nogui\duckstation-nogui.rc +powershell -Command "(gc ..\duckstation-nogui\duckstation-nogui.rc) -replace '1.0.0.1', '"%TAG:~0,1%"."%TAG:~2,1%"."%TAG:~4,4%"' | Out-File -encoding ASCII ..\duckstation-nogui\duckstation-nogui.rc" + EXIT