From 13b6755a2366fe2cec2f935e03decb8e6f7a9932 Mon Sep 17 00:00:00 2001 From: "haibo.chen" <495810242@qq.com> Date: Wed, 26 Feb 2025 15:29:22 +0800 Subject: [PATCH] Update build script to use consistent config file path --- build.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index 4ee7a64..e69f02b 100644 --- a/build.bat +++ b/build.bat @@ -22,9 +22,9 @@ go build -o %BINARY_NAME% %MAIN_PATH% echo Copying config file... if exist "%CONFIG_FILE%" ( - mkdir "objs\%~dp0%CONFIG_FILE%" 2>nul - xcopy /s /i /y "%CONFIG_FILE%" "objs\%~dp0%CONFIG_FILE%\" - echo Config file copied to objs\%~dp0%CONFIG_FILE% + if not exist "objs\conf" mkdir "objs\conf" + xcopy /s /i /y "%CONFIG_FILE%" "objs\conf\" + echo Config file copied to objs\conf ) else ( echo Warning: %CONFIG_FILE% not found )