refactor: set reference directory to current working directory

This commit is contained in:
Gatsby Van
2024-11-04 20:21:32 +08:00
parent 3dabd24964
commit e8a1e869cb
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -5,6 +5,9 @@ set "work_dir=%~dp0build"
set "config=%~dp0config.json"
set "tools_dir=%~dp0scripts\platform\%platform%"
REM Change working dir to the dir where this script is located
cd /d "%~dp0"
REM Set up enviroment
call "%tools_dir%\setenv.bat" "%pltform_ver%"
if "%ERRORLEVEL%" neq "0" (