chore: 修复启动脚本启动失败的问题

This commit is contained in:
XcantloadX 2025-02-20 12:50:59 +08:00
parent a2f82dce19
commit 92a20906e9
2 changed files with 13 additions and 5 deletions

View File

@ -25,7 +25,7 @@ pip show ksaa
echo =========== 运行 KAA ===========
:RUN
ksaa
kaa
if errorlevel 1 (
goto ERROR
)

View File

@ -5,24 +5,32 @@ if errorlevel 1 (
)
if "%~1"=="" (
echo 请将 whl 文件拖到此脚本上
echo 请将 Python 包文件拖到此脚本上
pause
exit /b 1
)
echo 卸载原有包...
echo =========== 卸载原有包 ===========
pip uninstall -y ksaa
pip uninstall -y ksaa_res
if errorlevel 1 (
goto ERROR
)
echo 正在安装 %~1 ...
:INSTALL_LOOP
if "%~1"=="" goto INSTALL_DONE
echo =========== 安装 %~1 ===========
pip install "%~1"
if errorlevel 1 (
goto ERROR
)
echo 安装完成
shift
goto INSTALL_LOOP
:INSTALL_DONE
echo =========== 安装完成 ===========
pause
exit /b 0