-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
49 lines (45 loc) · 1.17 KB
/
install.bat
File metadata and controls
49 lines (45 loc) · 1.17 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
@echo off
echo ================================================
echo Click Offres - Installation
echo ================================================
echo.
set PY_EXE=
if exist "c:\Python314\python.exe" set PY_EXE=c:\Python314\python.exe
if "%PY_EXE%"=="" (
py -3 --version >nul 2>&1
if %ERRORLEVEL%==0 set PY_EXE=py -3
)
if "%PY_EXE%"=="" (
python --version >nul 2>&1
if %ERRORLEVEL%==0 set PY_EXE=python
)
if "%PY_EXE%"=="" (
echo ERROR: Python not found.
echo Install Python 3.10+ then re-run this installer.
pause
exit /b 1
)
echo.
echo Installing Python dependencies...
%PY_EXE% -m pip install customtkinter playwright Pillow
if %ERRORLEVEL% neq 0 (
echo.
echo ERROR: pip install failed!
pause
exit /b 1
)
echo.
echo Installing Chromium browser...
%PY_EXE% -m playwright install chromium
if %ERRORLEVEL% neq 0 (
echo.
echo ERROR: Playwright install failed!
pause
exit /b 1
)
echo.
echo ================================================
echo Installation complete!
echo Double-click "run.bat" to start the app.
echo ================================================
pause