-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperplexify_setup.bat
More file actions
45 lines (38 loc) · 1.12 KB
/
Copy pathperplexify_setup.bat
File metadata and controls
45 lines (38 loc) · 1.12 KB
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
@echo off
setlocal
cd /d "%~dp0"
set "PERPLEXIFY_DIR=%CD%"
set "PYTHONPATH=%PERPLEXIFY_DIR%;%PYTHONPATH%"
echo.
echo ============================================================
echo Perplexify CLI - Quick Setup
echo ============================================================
echo.
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python was not found in PATH.
exit /b 1
)
if /I "%~1"=="check" (
echo [CHECK] Python is available.
echo [CHECK] Perplexify folder: %PERPLEXIFY_DIR%
echo [CHECK] Local requirements file: requirements.txt
if not exist "requirements.txt" (
echo [ERROR] Missing requirements.txt
exit /b 1
)
echo [CHECK] Perplexify module import...
python cli.py --help >nul
exit /b %ERRORLEVEL%
)
echo [1/3] Installing Perplexify Python dependencies...
python -m pip install -r "requirements.txt"
if errorlevel 1 exit /b 1
echo.
echo [2/3] Installing Playwright Chromium runtime...
python -m playwright install chromium
if errorlevel 1 exit /b 1
echo.
echo [3/3] Launching Perplexify cookie setup...
python cli.py setup
exit /b %ERRORLEVEL%