-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
33 lines (24 loc) · 773 Bytes
/
build.bat
File metadata and controls
33 lines (24 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
setlocal
set CSC=""
if exist "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" set CSC="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
if %CSC% == "" if exist "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" set CSC="C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"
if %CSC% == "" (
echo Error: csc.exe not found
exit /b 1
)
echo Using compiler: %CSC%
if not exist bin mkdir bin
%CSC% /nologo /out:bin\ByteSplice.exe /recurse:src\*.cs
if errorlevel 1 goto failed
echo Build successful!
REM Build portable version if available
if exist "Tools\Portable\build_portable.bat" (
echo.
echo Building portable version...
call "Tools\Portable\build_portable.bat"
)
exit /b 0
:failed
echo Build failed!
exit /b 1