|
@echo off
|
|
setlocal
|
|
|
|
|
|
set REPO_URL=https://github.com/ShiromiyaG/RVC-AI-Cover-Maker-UI
|
|
|
|
|
|
cd /d %~dp0
|
|
|
|
|
|
for /d %%D in (*) do (
|
|
if /i not "%%D"=="env" if /i not "%%D"=="logs" if /i not "%%D"=="audio_files" if /i not "%%D"=="models" if /i not "%%D"=="programs" (
|
|
echo Deleting directory %%D
|
|
rmdir /s /q "%%D"
|
|
)
|
|
)
|
|
|
|
|
|
for /d %%D in (programs\*) do (
|
|
if /i not "%%D"=="programs\applio_code" (
|
|
echo Deleting directory %%D
|
|
rmdir /s /q "%%D"
|
|
)
|
|
)
|
|
|
|
for /d %%D in (programs\applio_code\*) do (
|
|
if /i not "%%D"=="programs\applio_code\rvc" (
|
|
echo Deleting directory %%D
|
|
rmdir /s /q "%%D"
|
|
)
|
|
)
|
|
|
|
for /d %%D in (programs\applio_code\rvc\*) do (
|
|
if /i not "%%D"=="programs\applio_code\rvc\models" (
|
|
echo Deleting directory %%D
|
|
rmdir /s /q "%%D"
|
|
)
|
|
)
|
|
|
|
|
|
for %%F in (*) do (
|
|
if not "%%F"=="update.bat" (
|
|
echo Deleting file %%F
|
|
del /q "%%F"
|
|
)
|
|
)
|
|
|
|
|
|
if not exist .git (
|
|
git init
|
|
git remote add origin %REPO_URL%
|
|
)
|
|
|
|
|
|
git fetch origin
|
|
|
|
|
|
git reset --hard origin/main
|
|
|
|
pause
|
|
endlocal
|
|
|