mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
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.
16 lines
191 B
Batchfile
16 lines
191 B
Batchfile
|
|
@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 |