-
Notifications
You must be signed in to change notification settings - Fork 2
/
Fast BTS Spicetify Update.bat
41 lines (30 loc) · 1.17 KB
/
Fast BTS Spicetify Update.bat
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
@ECHO OFF
TITLE Fast BTS ^& Spicetify Update
ECHO [91m--- Fast BTS ^& Spicetify Update ---[0m
ECHO.
ECHO [92m--------------------------[0m
ECHO [92m--- Updating Spicetify ---[0m
ECHO [92m--------------------------[0m
echo y| call spicetify upgrade
echo y| call spicetify restore backup apply
ECHO.
ECHO [92m-----------------------------[0m
ECHO [92m--- Updating BlockTheSpot ---[0m
ECHO [92m-----------------------------[0m
ECHO.
@REM Colors :
@REM https://gist.githubusercontent.com/mlocati/fdabcaeb8071d5c75a2d51712db24011/raw/b710612d6320df7e146508094e84b92b34c77d48/win10colors.cmd
@REM https://stackoverflow.com/questions/2048509/how-to-echo-with-different-colors-in-the-windows-command-line
@REM Stop the Spotify process
tasklist | find /i "Spotify.exe" >NUL && (
taskkill /F /IM Spotify.exe
)
@REM Get the latest release
powershell -Command "Invoke-WebRequest https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip -OutFile chrome_elf.zip"
@REM Unzipe and move to Spotify
powershell Expand-Archive -Force ./chrome_elf.zip %APPDATA%/Spotify
@REM Delete chrome_elf.zip
del chrome_elf.zip
ECHO.
START %APPDATA%/Spotify/Spotify.exe
PAUSE