Add version number to the Windows executable
https://github.com/stenzek/duckstation/issues/2083
This commit is contained in:
parent
b2ffee63a6
commit
b0cd59e5fb
|
@ -23,5 +23,11 @@ ECHO const char* g_scm_tag_str = "%TAG%";
|
||||||
ECHO const char* g_scm_date_str = "%CDATE%";
|
ECHO const char* g_scm_date_str = "%CDATE%";
|
||||||
)>%VERSIONFILE%
|
)>%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
|
EXIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue