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