Skip to content

Commit c5d0303

Browse files
committed
Update build script
1 parent 77ca434 commit c5d0303

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ if not "%PACKAGE_COMPILED_PLUGINS_USE%" == "1" goto after-compile
1515

1616
echo Prepare for compiling plugins...
1717

18-
call :makedir %PLUGINS_LIST_PATH%
1918
call :del %PLUGINS_LIST%
2019
if "%PACKAGE_PLUINGS_LIST_USE%" == "1" (
20+
call :makedir %PLUGINS_LIST_PATH%
2121
echo. 2>%PLUGINS_LIST%
2222
)
2323

@@ -91,4 +91,4 @@ exit /b
9191

9292
:zip
9393
powershell Compress-Archive %~1 %~2 -Force
94-
exit /b
94+
exit /b

config.bat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
:: ?? ??? ??????? ???????.
2-
31
@echo off
42

53
echo Read build config:
64
set PACKAGE_NAME=Unnamed
5+
set PACKAGE_AMXMODX_FOLDER=amxmodx
76
set PACKAGE_README_USE=0
87

98
set PACKAGE_ASSETS_USE=0
@@ -38,7 +37,7 @@ set AMXX_COMPILER_EXECUTABLE_PATH=%AMXX_COMPILER_DIR%\%AMXX_COMPILER_EXECUTABLE%
3837

3938

4039
set ROOT_PATH=%CD%
41-
set AMXMODX_PATH=%ROOT_PATH%\amxmodx
40+
set AMXMODX_PATH=%ROOT_PATH%\%PACKAGE_AMXMODX_FOLDER%
4241
set INCLUDES_PATH=%AMXMODX_PATH%\scripting\include
4342
set README_FILE=%ROOT_PATH%\README.md
4443
set ASSETS_PATH=%ROOT_PATH%\%PACKAGE_ASSETS_FOLDER%

0 commit comments

Comments
 (0)