-
-
Notifications
You must be signed in to change notification settings - Fork 125
/
build.bat
59 lines (44 loc) · 1.24 KB
/
build.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
@set path=%path%;c:\python27\
@echo ------------------------------------------------------------
@echo KICOM Anti-Virus II (for WIN32) Build Tool Ver 0.11
@echo Copyright (C) 1995-2017 Kei Choi. All rights reserved.
@echo ------------------------------------------------------------
@echo.
if "%1" == "erase" goto START
if "%1" == "build" goto START
@echo Usage : builder.bat [build][erase]
goto END
:START
@echo [*] Delete all files in Release
if exist Release (
@rd /Q /S Release > nul
)
if exist "key.skr" @del key.skr > nul
if exist "key.pkr" @del key.pkr > nul
if "%1" == "erase" (
@echo [*] Delete Success
goto END
)
:BUILD
@echo [*] Engine file copy to the Release folder...
@xcopy Engine\* Release\ /e > nul
if not exist "key.pkr" @python.exe Tools\mkkey.py
if not exist "key.skr" @python.exe Tools\mkkey.py
@copy key.* Release\plugins > nul
@rem copy Tools\kmake.py Release\plugins > nul
@cd Release\plugins
@echo [*] Build Engine files...
@python.exe ..\..\Tools\kmake.py kicom.lst
for %%f in (*.py) do (
if %%f neq kmake.py (
@python.exe ..\..\Tools\kmake.py %%f
)
)
@del /Q *.py > nul
@del kicom.lst > nul
@del key.skr > nul
@del __init__.kmd > nul
@cd ..
@echo [*] Build Success
:END