-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_stream_bridge.bat
More file actions
43 lines (32 loc) · 888 Bytes
/
Copy pathinstall_stream_bridge.bat
File metadata and controls
43 lines (32 loc) · 888 Bytes
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
@echo off
setlocal enabledelayedexpansion
echo === Spicetify Stream Bridge installer ===
for /f "delims=" %%i in ('spicetify path userdata --bypass-admin') do (
set USERDATA=%%i
)
set EXT_DIR=%USERDATA%\Extensions
echo Userdata: %USERDATA%
echo Extensions dir: %EXT_DIR%
if not exist "%EXT_DIR%" (
echo ERROR: Extensions folder not found
pause
exit /b 1
)
echo Killing Spotify...
taskkill /IM spotify.exe /F >nul 2>&1
echo Copying stream_bridge.js...
copy /Y "%~dp0spotify_extension\stream_bridge.js" "%EXT_DIR%\stream_bridge.js"
if errorlevel 1 (
echo ERROR: failed to copy extension
pause
exit /b 1
)
echo Enabling extension...
spicetify config extensions stream_bridge.js --bypass-admin
echo Rebuilding Spicetify (backup + apply)...
spicetify backup --bypass-admin
spicetify apply --force --bypass-admin
echo.
echo DONE.
echo Start Spotify.
pause