modify the old spotx script to the new blockthespot (#4)
This commit is contained in:
parent
fe7b2b0be6
commit
ce4a293330
4 changed files with 18 additions and 23 deletions
2
Makefile
2
Makefile
|
@ -120,7 +120,7 @@ sync-wsl:
|
||||||
sync-windows:
|
sync-windows:
|
||||||
# Scripts
|
# Scripts
|
||||||
@$(WGET) $(REPO_SRC)/windows/ctmpf.bat -O $(WIN_HOME)/Documents/Local/ctmpf.bat
|
@$(WGET) $(REPO_SRC)/windows/ctmpf.bat -O $(WIN_HOME)/Documents/Local/ctmpf.bat
|
||||||
@$(WGET) https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/simple.bat -O $(WIN_HOME)/Documents/Local/blockthespot.bat
|
@$(WGET) $(REPO_SRC)/windows/blockthespot.bat -O $(WIN_HOME)/Documents/Local/blockthespot.bat
|
||||||
@$(WGET) $(REPO_SRC)/windows/update.bat -O $(WIN_HOME)/Documents/Local/update.bat
|
@$(WGET) $(REPO_SRC)/windows/update.bat -O $(WIN_HOME)/Documents/Local/update.bat
|
||||||
@$(WGET) $(REPO_SRC)/windows/fix_nvidia_wsl.bat -O $(WIN_HOME)/Documents/Local/fix_nvidia_wsl.bat
|
@$(WGET) $(REPO_SRC)/windows/fix_nvidia_wsl.bat -O $(WIN_HOME)/Documents/Local/fix_nvidia_wsl.bat
|
||||||
@echo "(Windows) Scripts synced!"
|
@echo "(Windows) Scripts synced!"
|
||||||
|
|
16
windows/blockthespot.bat
Normal file
16
windows/blockthespot.bat
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
@ECHO off
|
||||||
|
|
||||||
|
:: Patch spotify
|
||||||
|
PowerShell -Command "[Net.ServicePointManager]::SecurityProtocol =" ^
|
||||||
|
"[Net.SecurityProtocolType]::Tls12; Invoke-Expression """"&" ^
|
||||||
|
"{ $(Invoke-WebRequest -UseBasicParsing" ^
|
||||||
|
"'https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/install.ps1')" ^
|
||||||
|
"} -UninstallSpotifyStoreEdition -UpdateSpotify""""
|
||||||
|
|
||||||
|
:: Delete newly created Spotify shortcut
|
||||||
|
DEL %HOMEPATH%\Desktop\Spotify.lnk
|
||||||
|
ie4uinit -show
|
||||||
|
ECHO Raccourci sur le bureau detruit
|
||||||
|
|
||||||
|
PAUSE
|
||||||
|
EXIT /b
|
|
@ -1,21 +0,0 @@
|
||||||
:: NOT USED ANYMORE
|
|
||||||
|
|
||||||
@ECHO off
|
|
||||||
|
|
||||||
:: Patch spotify
|
|
||||||
PowerShell -Command "&{[Net.ServicePointManager]::SecurityProtocol =" ^
|
|
||||||
"[Net.SecurityProtocolType]::Tls12}; """"& {" ^
|
|
||||||
"$((Invoke-WebRequest -UseBasicParsing" ^
|
|
||||||
"'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)}" ^
|
|
||||||
"-confirm_uninstall_ms_spoti -confirm_spoti_recomended_over" ^
|
|
||||||
"-podcasts_on -cache_on -block_update_off -start_spoti" ^
|
|
||||||
"-hide_col_icon_off -new_theme -lyrics_stat purple" ^
|
|
||||||
" """" | Invoke-Expression"
|
|
||||||
|
|
||||||
:: Delete newly created Spotify shortcut
|
|
||||||
DEL %HOMEPATH%\Desktop\Spotify.lnk
|
|
||||||
ie4uinit -show
|
|
||||||
ECHO Raccourci sur le bureau detruit
|
|
||||||
|
|
||||||
PAUSE
|
|
||||||
EXIT /b
|
|
|
@ -114,7 +114,7 @@ PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
|
||||||
:: === Scripts ==
|
:: === Scripts ==
|
||||||
MKDIR %HOMEPATH%\Documents\Local
|
MKDIR %HOMEPATH%\Documents\Local
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
|
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/simple.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
|
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
|
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"
|
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue