Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuerd committed Oct 8, 2023
1 parent c8d6bb2 commit 770db94
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ build.bat
*.pot
*.po
/*.mo

#gui
gui.py
43 changes: 43 additions & 0 deletions 一键启动.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
chcp 65001

@echo off

rem 检查python环境
echo 当前python版本为:
python --version
if not errorlevel 0 (
echo python环境未安装,请先安装python
pause
exit /b 1
)

rem 进入当前文件夹
cd /d %~dp0

rem 检查虚拟环境后启动脚本
if not exist env (
echo 虚拟环境未安装,正在安装虚拟环境
python -m venv env

call env\Scripts\activate
echo 已经激活虚拟环境

echo 准备安装依赖
pip install -r requirements.version.txt
echo 依赖安装完成

goto runhonkai

) else (
rem 激活虚拟环境
call env\Scripts\activate
echo 已经激活虚拟环境

rem 启动脚本
:runhonkai
echo 正在启动中...
python honkai_star_rail.py
echo 按任意键结束
pause > nul
)

0 comments on commit 770db94

Please sign in to comment.