-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.cmd
More file actions
49 lines (40 loc) · 1.14 KB
/
Copy pathinstall.cmd
File metadata and controls
49 lines (40 loc) · 1.14 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
@echo off
setlocal
chcp 65001 >nul
cd /d "%~dp0"
echo.
echo Spotify Taskbar Plugin installer
echo ---------------------------------
set "PY_CMD=python"
where py >nul 2>nul
if not errorlevel 1 set "PY_CMD=py -3"
echo [1/4] Creating local virtual environment...
%PY_CMD% -m venv .venv
if errorlevel 1 (
echo Failed to create .venv. Please install Python 3.11+ and try again.
pause
exit /b 1
)
set "VENV_PY=%~dp0.venv\Scripts\python.exe"
set "VENV_PYW=%~dp0.venv\Scripts\pythonw.exe"
echo [2/4] Installing dependencies...
"%VENV_PY%" -m pip install --upgrade pip
if errorlevel 1 goto fail
"%VENV_PY%" -m pip install -r requirements.txt
if errorlevel 1 goto fail
echo [3/4] Creating desktop shortcut...
"%VENV_PY%" install_desktop_shortcut.py
if errorlevel 1 goto fail
echo [4/4] Starting tray app...
wscript.exe "%~dp0start-spotify-taskbar-overlay.vbs"
echo.
echo Done. Use the desktop shortcut or tray icon to manage the plugin.
echo Right-click tray icon: settings. Left-click: show/hide overlay.
echo This installer window will close automatically.
timeout /t 2 /nobreak >nul
exit /b 0
:fail
echo.
echo Install failed. See the error above.
pause
exit /b 1