-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bat
More file actions
69 lines (63 loc) · 1.67 KB
/
setup.bat
File metadata and controls
69 lines (63 loc) · 1.67 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
@echo off
echo ========================================
echo AVSync Desktop - Windows Setup Script
echo ========================================
echo.
echo Step 1: Installing Node.js dependencies...
call npm install
if %errorlevel% neq 0 (
echo ERROR: Failed to install Node.js dependencies
pause
exit /b 1
)
echo.
echo Step 2: Installing Python dependencies...
call pip install -r requirements.txt
if %errorlevel% neq 0 (
echo ERROR: Failed to install Python dependencies
pause
exit /b 1
)
echo.
echo Step 3: Building AVSync executable with PyInstaller...
call pyinstaller --clean avsync.spec
if %errorlevel% neq 0 (
echo ERROR: Failed to build AVSync executable
pause
exit /b 1
)
echo.
echo Step 4: Creating resources directory...
if not exist "resources\bin" mkdir resources\bin
echo.
echo Step 5: Copying AVSync PyInstaller bundle to resources...
if exist "dist\avsync" (
xcopy /E /I /Y dist\avsync resources\avsync > nul
echo AVSync bundle copied successfully
) else (
echo WARNING: AVSync folder not found at dist\avsync
)
echo.
echo ========================================
echo Setup Complete!
echo ========================================
echo.
echo NEXT STEPS:
echo.
echo 1. Download FFmpeg and FFprobe from:
echo https://www.gyan.dev/ffmpeg/builds/
echo Extract and copy ffmpeg.exe and ffprobe.exe to: resources\bin\
echo.
echo 2. Download MKVToolNix from:
echo https://mkvtoolnix.download/
echo Extract and copy mkvmerge.exe to: resources\bin\
echo.
echo 3. Run development mode:
echo npm run dev
echo.
echo 4. Or build for distribution:
echo npm run package:win
echo.
echo See QUICKSTART.md for more details.
echo.
pause