forked from JarodMica/StyleTTS-WebUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_package.bat
More file actions
46 lines (39 loc) · 1.52 KB
/
update_package.bat
File metadata and controls
46 lines (39 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
if not exist "runtime" (
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo This is not the packaged version, if you are trying to update your manual installation, please use git pull instead
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pause
exit /b
)
if exist "StyleTTS-WebUI" (
@echo It looks like you've already cloned the repository for updating before.
@echo If you want to continue with updating, type y.
@echo Else, type n.
choice /M "Do you want to continue?"
if errorlevel 2 (
@echo Exiting the script...
exit /b
)
rmdir /S /Q "StyleTTS-WebUI"
)
portable_git\bin\git.exe clone https://github.com/JarodMica/StyleTTS-WebUI.git
cd StyleTTS-WebUI
git submodule init
git submodule update --remote
cd ..
xcopy StyleTTS-WebUI\update_package.bat update_package.bat /E /I /H
xcopy StyleTTS-WebUI\webui.py webui.py /H
xcopy StyleTTS-WebUI\modules\tortoise_dataset_tools modules\tortoise_dataset_tools /E /I /H
xcopy StyleTTS-WebUI\modules\styletts2_phonemizer modules\styletts2_phonemizer /E /I /H
xcopy StyleTTS-WebUI\modules\StyleTTS2 modules\StyleTTS2 /E /I /H
runtime\python.exe -m pip uninstall StyleTTS2
runtime\python.exe -m pip install modules\StyleTTS2
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo Finished updating!
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pause