mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Build: Use Visual Studio's copy of the CRT DLLs
This commit is contained in:
		@@ -9,7 +9,7 @@ set GIT=%PROGRAMFILES%\Git\bin\git.exe
 | 
				
			|||||||
set VERSION_MAJOR=3
 | 
					set VERSION_MAJOR=3
 | 
				
			||||||
set VERSION_MINOR=0
 | 
					set VERSION_MINOR=0
 | 
				
			||||||
set VERSION_SUBMINOR=1
 | 
					set VERSION_SUBMINOR=1
 | 
				
			||||||
set VERSION_REVISION=0
 | 
					set VERSION_REVISION=2130
 | 
				
			||||||
set ISBETA=true
 | 
					set ISBETA=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set VERSION_FULL=%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_SUBMINOR%.%VERSION_REVISION%
 | 
					set VERSION_FULL=%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_SUBMINOR%.%VERSION_REVISION%
 | 
				
			||||||
@@ -85,15 +85,6 @@ for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
 | 
				
			|||||||
	set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + 1%%c %% 100) * 100 + 1%%d %% 100"
 | 
						set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + 1%%c %% 100) * 100 + 1%%d %% 100"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:: Build Library
 | 
					 | 
				
			||||||
echo * Building 32-bit projects
 | 
					 | 
				
			||||||
%MSBUILD% /t:rebuild /p:Configuration=Release;Platform=Win32 /v:q /m ..\Rainmeter.sln > "BuildLog.txt"
 | 
					 | 
				
			||||||
if not %ERRORLEVEL% == 0 echo   ERROR %ERRORLEVEL%: Build failed & goto END
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
echo * Building 64-bit projects
 | 
					 | 
				
			||||||
%MSBUILD% /t:rebuild /p:Configuration=Release;Platform=x64 /v:q /m ..\Rainmeter.sln > "BuildLog.txt"
 | 
					 | 
				
			||||||
if not %ERRORLEVEL% == 0 echo   ERROR %ERRORLEVEL%: Build failed & goto END
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
:BUILDLANGUAGES
 | 
					:BUILDLANGUAGES
 | 
				
			||||||
echo * Building languages
 | 
					echo * Building languages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -505,7 +505,7 @@ UAC_TryAgain:
 | 
				
			|||||||
	${EndIf}
 | 
						${EndIf}
 | 
				
			||||||
FunctionEnd
 | 
					FunctionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
!macro InstallFiles DIR
 | 
					!macro InstallFiles DIR ARCH
 | 
				
			||||||
	SetOutPath "$INSTDIR"
 | 
						SetOutPath "$INSTDIR"
 | 
				
			||||||
	File "..\..\TestBench\${DIR}\Release\Rainmeter.exe"
 | 
						File "..\..\TestBench\${DIR}\Release\Rainmeter.exe"
 | 
				
			||||||
	File "..\..\TestBench\${DIR}\Release\Rainmeter.dll"
 | 
						File "..\..\TestBench\${DIR}\Release\Rainmeter.dll"
 | 
				
			||||||
@@ -515,8 +515,8 @@ FunctionEnd
 | 
				
			|||||||
	File /x *Example*.dll "..\..\TestBench\${DIR}\Release\Plugins\*.dll"
 | 
						File /x *Example*.dll "..\..\TestBench\${DIR}\Release\Plugins\*.dll"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SetOutPath "$INSTDIR\Runtime"
 | 
						SetOutPath "$INSTDIR\Runtime"
 | 
				
			||||||
	File "..\Runtime\${DIR}\msvcp110.dll"
 | 
						File "$%VS110COMNTOOLS%..\..\VC\redist\${ARCH}\Microsoft.VC110.CRT\msvcp110.dll"
 | 
				
			||||||
	File "..\Runtime\${DIR}\msvcr110.dll"
 | 
						File "$%VS110COMNTOOLS%..\..\VC\redist\${ARCH}\Microsoft.VC110.CRT\msvcr110.dll"
 | 
				
			||||||
!macroend
 | 
					!macroend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
!macro RemoveStartMenuShortcuts STARTMENUPATH
 | 
					!macro RemoveStartMenuShortcuts STARTMENUPATH
 | 
				
			||||||
@@ -662,9 +662,9 @@ SkipIniMove:
 | 
				
			|||||||
	File "..\..\Application\Rainmeter.exe.config"
 | 
						File "..\..\Application\Rainmeter.exe.config"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	${If} $instArc == "x86"
 | 
						${If} $instArc == "x86"
 | 
				
			||||||
		!insertmacro InstallFiles "x32"
 | 
							!insertmacro InstallFiles "x32" "x86"
 | 
				
			||||||
	${Else}
 | 
						${Else}
 | 
				
			||||||
		!insertmacro InstallFiles "x64"
 | 
							!insertmacro InstallFiles "x64" "x64"
 | 
				
			||||||
	${EndIf}
 | 
						${EndIf}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	RMDir /r "$INSTDIR\Languages"
 | 
						RMDir /r "$INSTDIR\Languages"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,14 +11,7 @@ After Visual Studio has been installed and updated, open Rainmeter.sln to build.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Building the installer
 | 
					### Building the installer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To build the full Rainmeter installer, you need to get obtain 32-bit and 64-bit versions of the Visual C++ 2012 Update 3 redistributable DLLs and place them in:
 | 
					To build the full Rainmeter installer, run Build.bat. If you receive "not found" errors, open Build.bat and change the `set=` lines at the top to match your system.
 | 
				
			||||||
 | 
					 | 
				
			||||||
* `Build\Runtime\x32\msvcr110.dll`
 | 
					 | 
				
			||||||
* `Build\Runtime\x32\msvcp110.dll`
 | 
					 | 
				
			||||||
* `Build\Runtime\x64\msvcr110.dll`
 | 
					 | 
				
			||||||
* `Build\Runtime\x64\msvcp110.dll`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Then run Build.bat. If you receive "not found" errors, open Build.bat and change the `set=` lines at the top to match your system.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
To sign the installer and the Rainmeter executables, create a Certificate.bat file alongside Build.bat with the following contents:
 | 
					To sign the installer and the Rainmeter executables, create a Certificate.bat file alongside Build.bat with the following contents:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user