This repository was archived by the owner on Feb 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.bat
More file actions
63 lines (55 loc) · 1.35 KB
/
Copy pathrun.bat
File metadata and controls
63 lines (55 loc) · 1.35 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
@echo off
setlocal EnableDelayedExpansion
color 0a
cls
echo.
echo [1;33m---------------------------------------------[0m
echo [1;36m scrcpy-desktop [0m
echo [1;33m---------------------------------------------[0m
echo [1;34mhttps://github.com/serifpersia/scrcpy-desktop[0m
echo [1;33m---------------------------------------------[0m
echo.
echo [1;32mStarting scrcpy desktop...[0m
echo.
echo Installing dependencies with npm install...
call npm install
if %ERRORLEVEL% neq 0 (
echo Error: npm install failed!
pause
exit /b %ERRORLEVEL%
) else (
echo Success: npm install completed!
)
echo.
echo Cleaning previous build artifacts...
call npm run clean
if %ERRORLEVEL% neq 0 (
echo Warning: npm run clean failed, proceeding anyway...
) else (
echo Success: Clean completed!
)
echo.
echo Building project with npm run build...
call npm run build
if %ERRORLEVEL% neq 0 (
echo Error: npm run build failed!
pause
exit /b %ERRORLEVEL%
) else (
echo Success: npm run build completed!
)
echo.
echo Running npm start...
call npm start
if %ERRORLEVEL% neq 0 (
echo Error: npm start failed!
pause
exit /b %ERRORLEVEL%
) else (
echo Success: npm start completed!
)
echo.
echo All commands executed successfully!
echo scrcpy desktop is now running.
pause
exit /b 0