Update build script to use consistent config file path

This commit is contained in:
haibo.chen
2025-02-26 15:29:22 +08:00
parent 808ed2a83b
commit 13b6755a23

View File

@ -22,9 +22,9 @@ go build -o %BINARY_NAME% %MAIN_PATH%
echo Copying config file... echo Copying config file...
if exist "%CONFIG_FILE%" ( if exist "%CONFIG_FILE%" (
mkdir "objs\%~dp0%CONFIG_FILE%" 2>nul if not exist "objs\conf" mkdir "objs\conf"
xcopy /s /i /y "%CONFIG_FILE%" "objs\%~dp0%CONFIG_FILE%\" xcopy /s /i /y "%CONFIG_FILE%" "objs\conf\"
echo Config file copied to objs\%~dp0%CONFIG_FILE% echo Config file copied to objs\conf
) else ( ) else (
echo Warning: %CONFIG_FILE% not found echo Warning: %CONFIG_FILE% not found
) )