添加自动打包脚本。

This commit is contained in:
2026-03-17 14:21:59 +08:00
parent 5b18af4279
commit 8e7c1408f7
8 changed files with 349 additions and 26 deletions

28
script/AutoPack.bat Normal file
View File

@@ -0,0 +1,28 @@
@echo off
echo Config CMake...
cmake -B..\build -S..\ -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake" -A x64
if errorlevel 1 (
echo CMake Failed.
pause
exit /b 1
)
echo Building...
cmake --build ..\build --config Release
if errorlevel 1 (
echo Build Failed.
pause
exit /b 1
)
echo Packing...
python package.py ..\build\Tools.h
if errorlevel 1 (
echo Pack Failed.
pause
exit /b 1
)
echo Done.
pause