-
Notifications
You must be signed in to change notification settings - Fork 13
/
autobuild.bat
24 lines (23 loc) · 1.49 KB
/
autobuild.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
REM this script will build FrEee, assuming you have the .NET Framework 4.7.2 and MSBuild installed
REM .NET 4.7.2: https://www.microsoft.com/net/download/thank-you/net472
REM MSBuild: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15#
REM
REM if you create the following lines (without REM) in your .hg/hgrc file then it will automatically run when you update (handy when pulling other developers' changes)
REM
REM [hooks]
REM update = autobuild.bat
REM
REM or, you can just run the script yourself as needed if you don't want to be bothered firing up (or installing!) Visual Studio
REM
REM before running this script you might first want to run clone-dependencies.bat (or pull-update-dependencies.bat if you have already cloned them)
REM using those scripts will require you have Mercurial installed
REM my favorite Mercurial client: http://tortoisehg.bitbucket.org/
if exist "C:\Program Files\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe" (
("C:\Program Files\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe" FrEee.sln)
) else if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe" (
("C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe" FrEee.sln)
) else (
echo MSBuild v15 is not installed! Download it from https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools^&rel=15#
)
pause