forked from Zuntan03/EasyNovelAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun-EasyNovelAssistant.bat
36 lines (27 loc) · 1.39 KB
/
Run-EasyNovelAssistant.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
@echo off
chcp 65001 > NUL
set CURL_CMD=C:\Windows\System32\curl.exe -k
if not exist %~dp0sample\ ( mkdir %~dp0sample )
pushd %~dp0sample
echo %CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/special.json
%CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/special.json
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
echo %CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/template.json
%CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/template.json
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
echo %CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/sample.json
%CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/sample.json
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
echo %CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/nsfw.json
%CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/nsfw.json
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
echo %CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/speech.json
%CURL_CMD% -sLO https://yyy.wpx.jp/EasyNovelAssistant/sample/speech.json
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
popd
pushd %~dp0
call EasyNovelAssistant\setup\ActivateVirtualEnvironment.bat
if %errorlevel% neq 0 ( popd & exit /b 1 )
python EasyNovelAssistant\src\easy_novel_assistant.py
if %errorlevel% neq 0 ( pause & popd & exit /b 1 )
popd