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,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;" ^
@ -13,7 +14,7 @@ PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/late
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 ==