Merge branch 'main' of git.mylloon.fr:Anri/confOS

This commit is contained in:
Mylloon 2023-09-13 13:03:57 +02:00
commit 207237aa35
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 32 additions and 28 deletions

View file

@ -125,10 +125,11 @@ sync-wsl:
# Windows through WSL
sync-windows:
# Scripts
@$(WGET) $(REPO_SRC)/windows/ctmpf.bat -O $(WIN_HOME)/Documents/Local/ctmpf.bat
@$(WGET) $(REPO_SRC)/windows/blockthespot.bat -O $(WIN_HOME)/Documents/Local/blockthespot.bat
@$(WGET) $(REPO_SRC)/windows/ctmpf.bat -O $(WIN_HOME)/Documents/Local/ctmpf.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/vencord_installer.bat -O $(WIN_HOME)/Documents/Local/vencord_installer.bat
@echo "(Windows) Scripts synced!"
@echo

View file

@ -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

View file

@ -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

View file

@ -4,16 +4,17 @@ 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
"%LOCALAPPDATA%\Discord\Update.exe"
PowerShell Start-Process "%LOCALAPPDATA%\Discord\app-*\Discord.exe"
PAUSE
)

View file

@ -204,7 +204,7 @@ PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'"
:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat -OutFile '%HOMEPATH%\Documents\Local\vencord_installer.bat'"
:: === Install Vencord ==