init (not checked bat script yet)
This commit is contained in:
30
scripts/Install-Style-Bert-VITS2.bat
Normal file
30
scripts/Install-Style-Bert-VITS2.bat
Normal file
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
chcp 65001 > NUL
|
||||
pushd %~dp0
|
||||
set PS_CMD=PowerShell -Version 5.1 -ExecutionPolicy Bypass
|
||||
|
||||
set CURL_CMD=C:\Windows\System32\curl.exe
|
||||
if not exist %CURL_CMD% (
|
||||
echo [ERROR] %CURL_CMD% が見つかりません。
|
||||
pause & popd & exit /b 1
|
||||
)
|
||||
|
||||
if not exist lib\ ( mkdir lib )
|
||||
|
||||
%CURL_CMD% -Lo Style-Bert-VITS2.zip^
|
||||
https://github.com/litagin02/Style-Bert-VITS2/archive/refs/heads/main.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
%PS_CMD% Expand-Archive -Path Style-Bert-VITS2.zip -DestinationPath . -Force
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
del lib\Style-Bert-VITS2.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
xcopy /QSY .\lib\%STYLE_BERT_VITS2_DIR%\scripts .
|
||||
|
||||
call src\Setup.bat
|
||||
|
||||
start HiyoriUi.bat
|
||||
|
||||
popd rem %~dp0..
|
||||
Reference in New Issue
Block a user