forked from Ikaros-521/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04f25f0
commit e11529d
Showing
8 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
Miniconda3\python.exe main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@echo off | ||
|
||
rem 获取当前系统用户的用户名 | ||
for /f %%i in ('whoami') do set "USERNAME=%%i" | ||
|
||
rem 如果无法获取用户名,则默认使用 "Administrator" | ||
if "%USERNAME%"=="" set "USERNAME=Administrator" | ||
|
||
rem 设置 Conda 配置文件路径 | ||
set "CONDARC_PATH=C:\Users\%USERNAME%\.condarc" | ||
|
||
rem 检查配置文件是否已存在 | ||
if exist "!CONDARC_PATH!" ( | ||
echo Conda 配置文件已存在,无需初始化。 | ||
exit /b | ||
) | ||
|
||
rem 创建 Conda 配置文件 | ||
echo 创建 Conda 配置文件... | ||
echo channels: > "!CONDARC_PATH!" | ||
echo - defaults >> "!CONDARC_PATH!" | ||
|
||
rem 初始化 Conda | ||
echo 初始化 Conda... | ||
conda init | ||
|
||
echo Conda 配置文件初始化完成。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
chcp 65001 | ||
color 0a | ||
set CONDA=%~dp0\Miniconda3\condabin\conda.bat | ||
call %CONDA% config --add channels conda-forge | ||
call %CONDA% config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ | ||
call %CONDA% config --set show_channel_urls yes | ||
cls | ||
call %CONDA% info | ||
cmd "/K" %~dp0\Miniconda3\Scripts\activate.bat %~dp0\Miniconda3 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@echo off | ||
chcp 65001 | ||
where git > nul 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo Git 命令没找到,请先安装git客户端. | ||
pause | ||
exit /b | ||
) | ||
|
||
git fetch --all | ||
git reset --hard origin/main | ||
echo 拉取完毕(如果没报错的话). | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
chcp 65001 | ||
where git > nul 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo Git 命令没找到,请先安装git客户端. | ||
pause | ||
exit /b | ||
) | ||
git pull origin main | ||
echo 拉取完毕(如果没报错的话). | ||
pause |