- Step numbering unified [x/9] across install.ps1 - Version numbers corrected: 92 Skills / 29 Hooks - Dead vars ($DebugDir, $stored) removed - Indentation cleanup in clone section - stop.ps1 ErrorAction position + step numbering - Bookworm-Setup.bat stats updated - AutoAccept mode for all .bat files (bypass prompts) - 卸载Bookworm.bat auto-confirm enabled - New-DesktopShortcuts renamed from Create- - USAGE URL updated to code.letcareme.com
25 lines
567 B
Batchfile
25 lines
567 B
Batchfile
@echo off
|
|
chcp 65001 > nul
|
|
title Bookworm Portable - 更新并启动
|
|
cd /d "%~dp0"
|
|
|
|
echo.
|
|
echo ====================================
|
|
echo Bookworm Portable - 更新并启动
|
|
echo (同步最新 Skills/Hooks 后启动)
|
|
echo ====================================
|
|
echo.
|
|
|
|
where pwsh >nul 2>nul
|
|
if %errorlevel% equ 0 (
|
|
pwsh -ExecutionPolicy Bypass -File install.ps1 -AutoAccept
|
|
) else (
|
|
powershell -ExecutionPolicy Bypass -File install.ps1 -AutoAccept
|
|
)
|
|
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo 启动失败,按任意键退出...
|
|
pause > nul
|
|
)
|