-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_windows.bat
More file actions
80 lines (71 loc) · 2.01 KB
/
setup_windows.bat
File metadata and controls
80 lines (71 loc) · 2.01 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
75
76
77
78
79
80
@echo off
REM FFmpeg GUI - Windows Setup Script
REM This script sets up the virtual environment and installs dependencies
echo ===========================================
echo FFmpeg GUI - Windows Setup
echo ===========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Python not found!
echo.
echo Please install Python from https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH" during installation
echo.
pause
exit /b 1
)
echo Python version:
python --version
echo.
REM Create virtual environment if it doesn't exist
if not exist ".venv" (
echo Creating virtual environment...
python -m venv .venv
if %errorlevel% neq 0 (
echo ERROR: Failed to create virtual environment
pause
exit /b 1
)
echo Virtual environment created successfully!
) else (
echo Virtual environment already exists.
)
echo.
REM Activate virtual environment
echo Activating virtual environment...
call .venv\Scripts\activate.bat
if %errorlevel% neq 0 (
echo ERROR: Failed to activate virtual environment
pause
exit /b 1
)
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM Install requirements
echo Installing dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo ERROR: Failed to install dependencies
echo.
echo Make sure requirements.txt exists and contains valid packages
pause
exit /b 1
)
echo.
echo ===========================================
echo Setup completed successfully!
echo ===========================================
echo.
echo To run the application:
echo 1. Activate virtual environment: .venv\Scripts\activate.bat
echo 2. Run PyQt6 version: python GUI_pyqt6_WINFF.py
echo 3. Or run Tkinter version: python GUI_tkinter_WINFF.py
echo.
echo To build Windows executable:
echo 1. Activate virtual environment: .venv\Scripts\activate.bat
echo 2. Run: pyinstaller FFmpeg_GUI_Windows.spec
echo.
pause