Feat: add version-based packaging script

Add script/package.bat and script/package.cmake to package build/bin artifacts into a versioned zip under dist/.

Version.txt now uses Major/Minor/Patch key-value format so the script can parse it, and dist/ is ignored.
This commit is contained in:
xiaozhou233 committed 2026-10-10 22:16:09 +08:00
1 parent 55303b7dc9
commit 560215c0ae
4 files changed
+88 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
@echo off
setlocal
set "ROOT_DIR=%~dp0"
cmake -P "%ROOT_DIR%package.cmake"
if errorlevel 1 (
echo [ERROR] Packaging failed.
exit /b 1
)
echo [SUCCESS] Packaging completed.
pause