-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlaunch_cli.bat
More file actions
54 lines (46 loc) · 1.12 KB
/
launch_cli.bat
File metadata and controls
54 lines (46 loc) · 1.12 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
@echo off
echo Launching BunkrDownloader...
REM Check if virtual environment exists
if not exist venv (
echo Virtual environment not found. Running setup_launcher.bat...
call setup_launcher.bat
if %ERRORLEVEL% NEQ 0 (
echo Setup failed. Please run setup_launcher.bat manually to see the error.
pause
exit /b 1
)
echo Setup completed successfully. Continuing with launch...
echo.
)
REM Activate virtual environment
call venv\Scripts\activate.bat
if %ERRORLEVEL% NEQ 0 (
echo Failed to activate virtual environment.
pause
exit /b 1
)
REM Launch the application
echo Starting BunkrDownloader...
echo.
REM Check if URL was provided as an argument
if "%~1" == "" (
echo Please enter a Bunkr URL to download:
set /p BUNKR_URL=URL:
) else (
set BUNKR_URL=%~1
)
REM Check if URL is provided
if "%BUNKR_URL%" == "" (
echo No URL provided. Exiting...
pause
exit /b 1
)
echo Processing URL: %BUNKR_URL%
echo.
python downloader.py %BUNKR_URL%
if %ERRORLEVEL% NEQ 0 (
echo Application exited with error.
pause
)
REM Deactivate virtual environment
call deactivate