-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.bat
More file actions
34 lines (28 loc) · 877 Bytes
/
install.bat
File metadata and controls
34 lines (28 loc) · 877 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
34
@echo off
set STRELAPATH=%HOMEDRIVE%%HOMEPATH%\.strela
if not exist "Release\strela.exe" (
echo !!! strela.exe does not exist. Please build the Visual Studio project in release mode and rerun this script
exit /B 1
)
echo ### Creating strela folder in %STRELAPATH%
if not exist "%STRELAPATH%" (
mkdir %STRELAPATH%
echo ### Done
) else (
echo ### Already exists
)
echo ### Creating lib folder in %STRELAPATH%
if not exist "%STRELAPATH%\lib" (
mkdir %STRELAPATH%\lib
echo ### Done
) else (
echo ### Already exists
)
echo ### Copying strela.exe
if exist %STRELAPATH%\strela.exe.old del %STRELAPATH%\strela.exe.old
if exist %STRELAPATH%\strela.exe ren %STRELAPATH%\strela.exe strela.exe.old
copy Release\strela.exe %STRELAPATH%
echo ### Done
echo ### Copying standard library
xcopy /E /I /Y /F Std %STRELAPATH%\lib\Std
echo ### Done