Skip to content

Commit

Permalink
Build.bat: Use current year for resource files
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Jun 25, 2021
1 parent d597f30 commit f6bd4f2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Application/Application.rc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VS_VERSION_INFO VERSIONINFO
BLOCK "040904E4"
{
VALUE "FileVersion", STRFILEVER
VALUE "LegalCopyright", "� 2019 Rainmeter Team"
VALUE "LegalCopyright", "� " STRCOPYRIGHT
VALUE "OriginalFilename", "Rainmeter.exe"
VALUE "CompanyName", "Rainmeter"
VALUE "ProductName", "Rainmeter"
Expand Down
7 changes: 5 additions & 2 deletions Build/Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ echo Rainmeter Build
echo ----------------------------------------------
echo.

set BUILD_TIME=%date:~-4%-%date:~4,2%-%date:~7,2% %time:~0,2%:%time:~3,2%:%time:~6,2%
set BUILD_YEAR=%date:~-4%
set BUILD_TIME=%BUILD_YEAR%-%date:~4,2%-%date:~7,2% %time:~0,2%:%time:~3,2%:%time:~6,2%

call "%VCVARSALL%" x86 > nul

Expand Down Expand Up @@ -66,6 +67,7 @@ if not "%VERSION_SUBMINOR%" == "0" set VERSION_SHORT=!VERSION_SHORT!.%VERSION_SU
echo #define APPVERSION L"%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_SUBMINOR%"
echo #define RAINMETER_VERSION ((%VERSION_MAJOR% * 1000000^) + (%VERSION_MINOR% * 1000^) + %VERSION_SUBMINOR%^)
echo #define BUILD_TIME L"%BUILD_TIME%"
echo #define STRCOPYRIGHT "%BUILD_YEAR% Rainmeter Team"
echo const int revision_number = %VERSION_REVISION%;
echo const bool revision_beta = %ISBETA%;
)
Expand Down Expand Up @@ -155,7 +157,8 @@ set INSTALLER_DEFINES=^
/DVERSION_SHORT="%VERSION_SHORT%"^
/DVERSION_REVISION="%VERSION_REVISION%"^
/DVERSION_MAJOR="%VERSION_MAJOR%"^
/DVERSION_MINOR="%VERSION_MINOR%"
/DVERSION_MINOR="%VERSION_MINOR%"^
/DBUILD_YEAR="%BUILD_YEAR%"
if "%BUILD_TYPE%" == "beta" set INSTALLER_DEFINES=!INSTALLER_DEFINES! /DBETA

"%MAKENSIS%" %INSTALLER_DEFINES% /WX .\Installer\Installer.nsi || (echo ERROR %ERRORLEVEL%: Building installer failed & exit /b 1)
Expand Down
Binary file modified Build/Installer/Installer.nsi
Binary file not shown.
2 changes: 1 addition & 1 deletion Library/Library.rc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VS_VERSION_INFO VERSIONINFO
BLOCK "040904E4"
{
VALUE "FileVersion", STRFILEVER
VALUE "LegalCopyright", "� 2019 Rainmeter Team"
VALUE "LegalCopyright", "� " STRCOPYRIGHT
VALUE "OriginalFilename", "Rainmeter.dll"
VALUE "CompanyName", "Rainmeter"
VALUE "ProductName", "Rainmeter"
Expand Down
2 changes: 1 addition & 1 deletion Restart/RestartRainmeter.rc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VS_VERSION_INFO VERSIONINFO
{
VALUE "FileDescription", "Restarts Rainmeter"
VALUE "FileVersion", STRFILEVER
VALUE "LegalCopyright", "� 2021 Rainmeter Team"
VALUE "LegalCopyright", "� " STRCOPYRIGHT
VALUE "OriginalFilename", "RestartRainmeter.exe"
VALUE "CompanyName", "Rainmeter"
VALUE "ProductName", "Rainmeter"
Expand Down
2 changes: 1 addition & 1 deletion SkinInstaller/SkinInstallerLauncher.rc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ VS_VERSION_INFO VERSIONINFO
BLOCK "040904E4"
{
VALUE "FileVersion", STRFILEVER
VALUE "LegalCopyright", "� 2019 Rainmeter Team"
VALUE "LegalCopyright", "� " STRCOPYRIGHT
VALUE "OriginalFilename", "SkinInstaller.exe"
VALUE "CompanyName", "Rainmeter"
VALUE "ProductName", "Rainmeter"
Expand Down
1 change: 1 addition & 0 deletions Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
#define STRPRODUCTVER STRFILEVER
#define APPVERSION L"0.0.0"
#define RAINMETER_VERSION ((0 * 1000000) + (0 * 1000) + 0)
#define STRCOPYRIGHT "0000 Rainmeter Team"
const int revision_number = 0;
const bool revision_beta = true;

0 comments on commit f6bd4f2

Please sign in to comment.