-
Notifications
You must be signed in to change notification settings - Fork 49
/
update_package.bat
62 lines (51 loc) · 2 KB
/
update_package.bat
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
set REPO_NAME=audiobook_maker
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 "%REPO_NAME%" (
@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 "%REPO_NAME%"
)
portable_git\bin\git.exe clone https://github.com/JarodMica/%REPO_NAME%.git
cd %REPO_NAME%
git submodule init
git submodule update --remote
cd ..
xcopy %REPO_NAME%\update_package.bat update_package.bat /E /I /H /Y
xcopy %REPO_NAME%\requirements.txt requirements.txt /E /I /H /Y
xcopy %REPO_NAME%\src src /E /I /H /Y
xcopy %REPO_NAME%\configs configs /E /I /H /Y
xcopy %REPO_NAME%\modules\tortoise_tts_api modules\tortoise_tts_api /E /I /H /Y
cd modules\tortoise_tts_api
git submodule init
git submodule update --remote
cd ..\..
runtime\python.exe -m pip uninstall -y tortoise_tts_api
runtime\python.exe -m pip uninstall -y dlas
runtime\python.exe -m pip uninstall -y tortoise
runtime\python.exe -m pip install modules\tortoise_tts_api\modules\tortoise_tts
runtime\python.exe -m pip install modules\tortoise_tts_api\modules\dlas
runtime\python.exe -m pip install modules\tortoise_tts_api
runtime\python.exe -m pip uninstall -y rvc-python
runtime\python.exe -m pip install git+https://github.com/JarodMica/rvc-python
runtime\python.exe -m pip install -r requirements.txt
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo Finished updating!
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pause