reduce line size
Using "" ^ for Powershell commands
This commit is contained in:
parent
c2c7efe0ee
commit
b88d74ea96
3 changed files with 28 additions and 25 deletions
|
@ -9,19 +9,20 @@ PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
||||||
|
|
||||||
:: Patch spotify
|
:: Patch spotify
|
||||||
ECHO Patch spotify avec BlockTheSpot
|
ECHO Patch spotify avec BlockTheSpot
|
||||||
PowerShell -Command "cd $HOME;" ^
|
PowerShell -Command "" ^
|
||||||
"$url_elf = 'https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip';" ^
|
"cd $HOME;" ^
|
||||||
"$dest_elf = Join-Path -Path $PWD -ChildPath 'chrome_elf.zip';" ^
|
"$url_elf = 'https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip';" ^
|
||||||
"$spotifyDirectory = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^
|
"$dest_elf = Join-Path -Path $PWD -ChildPath 'chrome_elf.zip';" ^
|
||||||
"$spotifyExecutable = Join-Path -Path $spotifyDirectory -ChildPath 'Spotify.exe';" ^
|
"$spotifyDirectory = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^
|
||||||
"Invoke-WebRequest -Uri $url_elf -OutFile $dest_elf;" ^
|
"$spotifyExecutable = Join-Path -Path $spotifyDirectory -ChildPath 'Spotify.exe';" ^
|
||||||
"Expand-Archive -Force -LiteralPath $dest_elf -DestinationPath $PWD | Wait-Process;" ^
|
"Invoke-WebRequest -Uri $url_elf -OutFile $dest_elf;" ^
|
||||||
"Remove-Item -LiteralPath $dest_elf -Force;" ^
|
"Expand-Archive -Force -LiteralPath $dest_elf -DestinationPath $PWD | Wait-Process;" ^
|
||||||
"$patchFiles = (Join-Path -Path $PWD -ChildPath 'dpapi.dll')," ^
|
"Remove-Item -LiteralPath $dest_elf -Force;" ^
|
||||||
"(Join-Path -Path $PWD -ChildPath 'config.ini');" ^
|
"$patchFiles = (Join-Path -Path $PWD -ChildPath 'dpapi.dll')," ^
|
||||||
"Copy-Item -LiteralPath $patchFiles -Destination $spotifyDirectory;" ^
|
"(Join-Path -Path $PWD -ChildPath 'config.ini');" ^
|
||||||
"Remove-Item -LiteralPath $patchFiles;" ^
|
"Copy-Item -LiteralPath $patchFiles -Destination $spotifyDirectory;" ^
|
||||||
"Start-Process -WorkingDirectory $spotifyDirectory -FilePath $spotifyExecutable"
|
"Remove-Item -LiteralPath $patchFiles;" ^
|
||||||
|
"Start-Process -WorkingDirectory $spotifyDirectory -FilePath $spotifyExecutable"
|
||||||
|
|
||||||
:: Delete newly created Spotify shortcut
|
:: Delete newly created Spotify shortcut
|
||||||
DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
|
DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
|
||||||
|
|
|
@ -8,12 +8,13 @@ fltmc >NUL 2>&1 || (
|
||||||
EXIT 0
|
EXIT 0
|
||||||
)
|
)
|
||||||
|
|
||||||
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
|
PowerShell -Command "" ^
|
||||||
"$Shortcut = $WshShell.CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk');" ^
|
"$WshShell = New-Object -COM WScript.Shell;" ^
|
||||||
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
|
"$Shortcut = $WshShell.CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk');" ^
|
||||||
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
|
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
|
||||||
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
|
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
|
||||||
"$Shortcut.Save()"
|
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
|
||||||
|
"$Shortcut.Save()"
|
||||||
|
|
||||||
IF NOT "%1"=="yes" PAUSE
|
IF NOT "%1"=="yes" PAUSE
|
||||||
EXIT /B
|
EXIT /B
|
||||||
|
|
|
@ -4,12 +4,13 @@ ECHO Ferme Discord
|
||||||
TASKKILL /im Discord.exe /F
|
TASKKILL /im Discord.exe /F
|
||||||
|
|
||||||
ECHO Installe Vencord
|
ECHO Installe Vencord
|
||||||
PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
|
PowerShell -Command "" ^
|
||||||
"$file = 'vencord.exe';" ^
|
"$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
|
||||||
"$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^
|
"$file = 'vencord.exe';" ^
|
||||||
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
"$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^
|
||||||
"cd $env:TEMP;" ^
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
||||||
"ECHO 1| & $outfile -install"
|
"cd $env:TEMP;" ^
|
||||||
|
"ECHO 1| & $outfile -install"
|
||||||
|
|
||||||
IF NOT "%1"=="yes" (
|
IF NOT "%1"=="yes" (
|
||||||
:: Restart Discord
|
:: Restart Discord
|
||||||
|
|
Loading…
Reference in a new issue