-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
75 lines (66 loc) · 1.74 KB
/
Copy pathinstall.bat
File metadata and controls
75 lines (66 loc) · 1.74 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@echo off
chcp 65001 >nul
echo ================================================
echo Unrestricted Browser - Installation
echo ================================================
echo.
REM Check Python
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python not found!
echo Install Python 3.8+ from https://www.python.org/
echo.
pause
exit /b 1
)
echo [1/5] Checking Python...
python --version
echo.
echo [2/5] Creating virtual environment...
if exist "venv" (
echo Virtual environment already exists, using it.
) else (
python -m venv .venv
if %errorlevel% neq 0 (
echo [ERROR] Failed to create virtual environment!
pause
exit /b 1
)
echo Virtual environment created successfully.
)
echo.
echo [3/5] Activating virtual environment...
call .venv\Scripts\activate.bat
if %errorlevel% neq 0 (
echo [ERROR] Failed to activate virtual environment!
pause
exit /b 1
)
echo.
echo [4/5] Updating pip...
python -m pip install --upgrade pip
echo.
echo [5/5] Installing dependencies...
echo This may take a few minutes...
python -m pip install --upgrade PyQt6 PyQt6-WebEngine
if %errorlevel% equ 0 (
echo.
echo ================================================
echo Installation completed successfully!
echo ================================================
echo.
echo Virtual environment: .venv\
echo To run browser: run.bat
echo.
) else (
echo.
echo ================================================
echo Installation failed!
echo ================================================
echo.
echo If you see DLL errors, install:
echo Visual C++ Redistributable from:
echo https://aka.ms/vs/17/release/vc_redist.x64.exe
echo.
)
pause