forked from julesontheroad/NSC_BUILDER
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the Korean files into Regional folder under py, and add Chinese lang support
- Loading branch information
Showing
37 changed files
with
16,399 additions
and
167 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@ECHO OFF | ||
:TOP_INIT | ||
set "prog_dir=%~dp0" | ||
set "bat_name=%~n0" | ||
set "ofile_name=%bat_name%_options.cmd" | ||
Title NSC_Builder v1.00c -- Profile: %ofile_name% -- by JulesOnTheRoad | ||
set "list_folder=%prog_dir%lists" | ||
::----------------------------------------------------- | ||
::编辑此变量以链接其他选项文件 | ||
::----------------------------------------------------- | ||
set "op_file=%~dp0zconfig\%ofile_name%" | ||
|
||
::----------------------------------------------------- | ||
::从选项文件复制选项 | ||
::----------------------------------------------------- | ||
setlocal | ||
if exist "%op_file%" call "%op_file%" | ||
endlocal & ( | ||
REM environment | ||
set "pycommand=%pycommand%" | ||
set "start_minimized=%start_minimized%" | ||
set "browserpath=%browserpath%" | ||
set "videoplayback=%videoplayback%" | ||
set "height=%height%" | ||
set "width=%width%" | ||
set "port=%port%" | ||
set "host=%host%" | ||
set "noconsole=%noconsole%" | ||
set "pycommandw=%pycommandw%" | ||
REM 程序 | ||
set "squirrel=%nut%" | ||
REM 文件 | ||
set "dec_keys=%dec_keys%" | ||
) | ||
::----------------------------------------------------- | ||
::设置绝对路径 | ||
::----------------------------------------------------- | ||
::程序完整路径 | ||
if exist "%~dp0%squirrel%" set "squirrel=%~dp0%squirrel%" | ||
|
||
::重要文件完整路径 | ||
if exist "%~dp0%dec_keys%" set "dec_keys=%~dp0%dec_keys%" | ||
::输出文件夹 | ||
CD /d "%~dp0" | ||
if not exist "%dec_keys%" ( goto missing_things ) | ||
|
||
if "%start_minimized%" EQU "yes" ( goto minimize ) | ||
goto start | ||
:minimize | ||
if not "%1" == "min" start /MIN cmd /c %0 min & exit/b >nul 2>&1 | ||
:start | ||
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call nutdb check_files ) | ||
if "%noconsole%" == "false" goto n1 | ||
start %pycommandw% "%squirrel%" -lib_call workers back_check_files | ||
start %pycommandw% "%squirrel%" -lib_call workers scrape_local_libs | ||
start %pycommandw% "%squirrel%" -lib_call workers scrape_remote_libs | ||
:n1 | ||
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" ) | ||
if "%noconsole%" == "false" goto salida | ||
start %pycommandw% "%squirrel%" -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" "%noconsole%" | ||
goto salida | ||
|
||
:missing_things | ||
echo .................................... | ||
echo 您缺少以下内容: | ||
echo .................................... | ||
echo. | ||
::文件完整路径 | ||
if not exist "%dec_keys%" echo - "keys.txt"文件指向不正确或者丢失。 | ||
echo. | ||
pause | ||
echo 程序即将退出 | ||
PING -n 2 127.0.0.1 >NUL 2>&1 | ||
goto salida | ||
:salida | ||
::暂停 | ||
exit |
Oops, something went wrong.