fix: setup.bat 한글 인코딩 문제 수정

UTF-8로 저장된 한글 주석이 Windows cmd.exe에서 CP949로 파싱되어
명령어가 깨지는 버그 수정. 주석 및 출력 메시지를 영어로 변경.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sinmb79
2026-03-25 08:00:49 +09:00
parent 15eb007b5a
commit 6d6ba14e76

View File

@@ -3,31 +3,31 @@ echo ========================================
echo Blog Engine Setup echo Blog Engine Setup
echo ======================================== echo ========================================
REM Python venv 생성 REM Create Python venv
python -m venv venv python -m venv venv
if errorlevel 1 ( if errorlevel 1 (
echo [ERROR] Python venv 생성 실패. Python 3.11 이상이 설치되어 있는지 확인하세요. echo [ERROR] Failed to create Python venv. Please install Python 3.11+
pause pause
exit /b 1 exit /b 1
) )
REM 패키지 설치 REM Install packages
call venv\Scripts\activate call venv\Scripts\activate
pip install --upgrade pip pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
if errorlevel 1 ( if errorlevel 1 (
echo [ERROR] 패키지 설치 실패. echo [ERROR] Package installation failed.
pause pause
exit /b 1 exit /b 1
) )
REM .env 파일 복사 (없을 경우) REM Copy .env file if not exists
if not exist .env ( if not exist .env (
copy .env.example .env copy .env.example .env
echo [OK] .env 파일 생성됨. API 키를 입력해주세요: .env echo [OK] .env file created. Please fill in your API keys: .env
) )
REM data 폴더 생성 REM Create data directories
if not exist data\topics mkdir data\topics if not exist data\topics mkdir data\topics
if not exist data\collected mkdir data\collected if not exist data\collected mkdir data\collected
if not exist data\discarded mkdir data\discarded if not exist data\discarded mkdir data\discarded
@@ -38,27 +38,27 @@ if not exist data\images mkdir data\images
if not exist data\drafts mkdir data\drafts if not exist data\drafts mkdir data\drafts
if not exist logs mkdir logs if not exist logs mkdir logs
REM Windows 작업 스케줄러에 scheduler.py 등록 REM Register scheduler.py in Windows Task Scheduler
set SCRIPT_PATH=%~dp0bots\scheduler.py set SCRIPT_PATH=%~dp0bots\scheduler.py
set PYTHON_PATH=%~dp0venv\Scripts\pythonw.exe set PYTHON_PATH=%~dp0venv\Scripts\pythonw.exe
schtasks /query /tn "BlogEngine" >nul 2>&1 schtasks /query /tn "BlogEngine" >nul 2>&1
if errorlevel 1 ( if errorlevel 1 (
schtasks /create /tn "BlogEngine" /tr "\"%PYTHON_PATH%\" \"%SCRIPT_PATH%\"" /sc onlogon /rl highest /f schtasks /create /tn "BlogEngine" /tr "\"%PYTHON_PATH%\" \"%SCRIPT_PATH%\"" /sc onlogon /rl highest /f
echo [OK] Windows 작업 스케줄러에 BlogEngine 등록 완료 echo [OK] BlogEngine registered in Windows Task Scheduler
) else ( ) else (
echo [INFO] BlogEngine 작업이 이미 등록되어 있습니다. echo [INFO] BlogEngine task already registered.
) )
echo. echo.
echo ======================================== echo ========================================
echo Setup 완료! echo Setup Complete!
echo ======================================== echo ========================================
echo. echo.
echo 다음 단계: echo Next steps:
echo 1. .env 파일을 열고 API 키를 모두 입력하세요 echo 1. Open .env and fill in all API keys
echo 2. scripts\get_token.py 를 실행해서 Google OAuth 토큰을 발급받으세요 echo 2. Run scripts\get_token.py to get Google OAuth token
echo 3. config\blogs.json 에서 BLOG_MAIN_ID 를 실제 블로그 ID로 변경하세요 echo 3. Update BLOG_MAIN_ID in config\blogs.json with your actual blog ID
echo 4. python bots\scheduler.py 로 스케줄러를 시작하세요 echo 4. Start scheduler with: python bots\scheduler.py
echo. echo.
pause pause