-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dev.cmd
More file actions
46 lines (38 loc) · 1 KB
/
Copy pathrun_dev.cmd
File metadata and controls
46 lines (38 loc) · 1 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
@echo off
setlocal
set "REPO_ROOT=%~dp0"
cd /d "%REPO_ROOT%"
where python >nul 2>nul
if errorlevel 1 (
echo Python 3.8 or newer is required on PATH.
exit /b 1
)
set "SKIP_INSTALL="
:parse_args
if "%~1"=="" goto args_done
if /I "%~1"=="-SkipInstall" set "SKIP_INSTALL=1"
shift
goto parse_args
:args_done
if not defined SKIP_INSTALL (
echo Installing editable desktop dependencies...
python -m pip install -e .[dev]
if errorlevel 1 exit /b %errorlevel%
where npm >nul 2>nul
if errorlevel 1 (
echo Node.js/npm is required for Steam client authorization.
exit /b 1
)
echo Installing Steam client bridge dependencies...
npm install
if errorlevel 1 exit /b %errorlevel%
)
if defined SKIP_INSTALL (
if not exist "%REPO_ROOT%node_modules\steam-user" (
echo Warning: Node bridge dependencies are missing. Run npm install before using Finish booster sign-in.
)
)
echo Launching Steam Hour Booster...
python -m steam_hour_booster
set "EXIT_CODE=%errorlevel%"
endlocal & exit /b %EXIT_CODE%