-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerateProjectFiles.bat
More file actions
38 lines (33 loc) · 1.02 KB
/
GenerateProjectFiles.bat
File metadata and controls
38 lines (33 loc) · 1.02 KB
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
@ECHO off
ECHO.
ECHO ==========================================================
ECHO ====== Generating Bagual Engine Project Files... =======
ECHO ==========================================================
ECHO.
IF NOT EXIST "premake5.exe" (
ECHO Downloading Premake5.zip ...
POWERSHELL -Command "Invoke-WebRequest https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip -OutFile premake-5.0.0-beta2-windows.zip"
ECHO Extracting Premake5.exe ...
POWERSHELL -Command "expand-archive -path 'premake-5.0.0-beta2-windows.zip' -destinationpath '.\'"
ECHO Deleting cached zip ...
DEL "premake-5.0.0-beta2-windows.zip"
DEL example.*
DEL luasocket.*
DEL premake5.pdb
ECHO.
)
IF "%1" == "--unity" (
set buildtype=--unity
) ELSE (
set buildtype=""
)
IF EXIST "premake5.exe" (
ECHO Running premake5 ...
ECHO.
CALL premake5.exe vs2022 %buildtype%
ECHO.
) ELSE (
ECHO Could not run premake5.exe, please get it manually from https://github.com/premake/premake-core/releases/
ECHO.
)
PAUSE