@@ -105,19 +105,6 @@ REM Set update channel.
105105>> Program\Updater.ini ECHO Channel=string:%Mode% || GOTO :error
106106ECHO Set update channel to " %Mode% " .
107107
108- REM Set version number.
109- IF " %Mode% " == " Stable" (
110- > Program\Version.txt ECHO %Version% || GOTO :error
111- ECHO Set version number to " %Version% " .
112- ) ELSE (
113- > Program\Version.txt ECHO %Mode:~0 ,1 %%Version% || GOTO :error
114- ECHO Set version number to " %Mode:~0 ,1 %%Version% " .
115- )
116-
117- REM Set revision number.
118- > Program\Revision.txt ECHO %Revision% || GOTO :error
119- ECHO Set revision number to " %Revision% " .
120-
121108REM Build locales.
122109PUSHD Source\Locales && CALL Update.bat non-interactive && POPD || GOTO :error
123110
@@ -131,16 +118,10 @@ copy "Program\RunActivity.exe.config" "Program\RunActivityLAA.exe.config" || GOT
131118ECHO Created large address aware version of RunActivity.exe.
132119
133120REM Copy version number from OpenRails.exe into all other 1st party files
134- SET VersionInfoVersion = 0.0.0.0
135- FOR /F " usebackq tokens=1 delims=-" %%V IN (`ECHO %Revision% `) DO SET VersionInfoVersion = %Version% .%%V
136- IF " %VersionInfoVersion% " == " 0.0.0.0" (
137- >& 2 ECHO ERROR: No VersionInfoVersion found in " Program\OpenRails.exe" .
138- GOTO :error
139- )
140121FOR %%F IN (" Program\*.exe" , " Program\Orts.*.dll" , " Program\Contrib.*.dll" , " Program\Tests.dll" ) DO (
141- rcedit-x86.exe " %%~F " --set-product-version %VersionInfoVersion % --set-file- version %VersionInfoVersion% --set-version- string ProductVersion %VersionInfoVersion% --set-version-string FileVersion %VersionInfoVersion % || GOTO :error
122+ rcedit-x86.exe " %%~F " --set-product-version %Revision % --set-version- string ProductVersion %Version % || GOTO :error
142123)
143- ECHO Set product and file version information to " %VersionInfoVersion % " .
124+ ECHO Set product version information to " %Version % " .
144125
145126REM *** Special build step: signs binaries ***
146127IF NOT " %JENKINS_TOOLS% " == " " (
@@ -174,7 +155,7 @@ IF "%Mode%" == "Stable" (
174155 IF %ERRORLEVEL% GEQ 8 GOTO :error
175156 ROBOCOPY /MIR /NJH /NJS " Program\Documentation" " Open Rails\Documentation"
176157 IF %ERRORLEVEL% GEQ 8 GOTO :error
177- > " Source\Installer\OpenRails shared\Version.iss" ECHO #define MyAppVersion " %Version% . %Revision% " || GOTO :error
158+ > " Source\Installer\OpenRails shared\Version.iss" ECHO #define MyAppVersion " %Version% " || GOTO :error
178159 iscc " Source\Installer\OpenRails from download\OpenRails from download.iss" || GOTO :error
179160 iscc " Source\Installer\OpenRails from DVD\OpenRails from DVD.iss" || GOTO :error
180161 CALL :move " Source\Installer\OpenRails from download\Output\OpenRailsTestingSetup.exe" " OpenRails-%Mode% -Setup.exe" || GOTO :error
0 commit comments