pack-release.bat 591 B

12345678910111213141516171819
  1. @echo off
  2. chcp 65001 >nul
  3. title Apq.Cfg NuGet 包生成工具
  4. :: 获取脚本所在目录
  5. set "SCRIPT_DIR=%~dp0"
  6. :: 检查是否提供了参数
  7. if "%~1"=="" (
  8. :: 无参数,交互式运行
  9. powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%pack-release.ps1"
  10. ) else (
  11. :: 有参数,传递给 PowerShell
  12. if /i "%~1"=="-NoBuild" (
  13. powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%pack-release.ps1" -NoBuild
  14. ) else (
  15. powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%pack-release.ps1" -OutputDir "%~1"
  16. )
  17. )