reduce line size

Using "" ^ for Powershell commands
This commit is contained in:
Mylloon 2023-09-13 12:03:52 +02:00
parent c2c7efe0ee
commit b88d74ea96
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 28 additions and 25 deletions

View file

@ -9,7 +9,8 @@ PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
:: Patch spotify
ECHO Patch spotify avec BlockTheSpot
PowerShell -Command "cd $HOME;" ^
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';" ^

View file

@ -8,7 +8,8 @@ fltmc >NUL 2>&1 || (
EXIT 0
)
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
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';" ^

View file

@ -4,7 +4,8 @@ ECHO Ferme Discord
TASKKILL /im Discord.exe /F
ECHO Installe Vencord
PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
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;" ^