-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcry.bat
More file actions
44 lines (32 loc) · 806 Bytes
/
cry.bat
File metadata and controls
44 lines (32 loc) · 806 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
35
36
37
38
39
40
41
42
43
44
@ECHO OFF
::
:: cry.bat
:: Shortcut script that executes commands to clean, build, and run the project (vs2022)
:: Note: Should be run from the root of the repository
::
:: Clean previous premake artifacts
CALL :clean "%~dp0"
:: Build the project with premake
CALL :build "%~dp0"
:: Optional: Compile using msbuild
:: CALL :make "%~dp0"
:: Optional: Run the unit tests
:: CALL :tests "%~dp0"
:: Optional: Run the project
:: CALL :execute "%~dp0"
GOTO :eof
:clean
CALL python3 %~f1\Scripts\bet.py --clean
GOTO :eof
:build
CALL python3 %~f1\Scripts\bet.py --build
GOTO :eof
:make
CALL msbuild sad.sln -property:Configuration=Debug
GOTO :eof
:tests
CALL python3 %~f1\Scripts\bet.py --tests
GOTO :eof
:execute
CALL %~f1\Build\Bin\Game\Game.exe
GOTO :eof