add mihoyo shortcuts

This commit is contained in:
Mylloon 2024-04-18 01:18:07 +02:00
parent d4e4720771
commit 1cebc13614
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 29 additions and 0 deletions

View file

@ -186,6 +186,7 @@ sync-windows:
@$(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
@$(WGET) $(REPO_SRC)/windows/fix_mihoyo_shortcut.bat -O $(WIN_HOME)/Documents/Local/fix_mihoyo_shortcut.bat
# @$(WGET) $(REPO_SRC)/windows/fix_obs_shortcut.bat -O $(WIN_HOME)/Documents/Local/fix_obs_shortcut.bat
@echo "$(WIN) Scripts synced!"
@echo

View file

@ -0,0 +1,24 @@
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET "collapse=%ProgramFiles%\Collapse Launcher"
FOR /F %%i IN ('dir /B /S ^"!collapse!\app-*^"') DO SET "vbc=%%i"
:: Genshin shortcut
PowerShell -Command "" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Genshin Impact.lnk');" ^
"$Shortcut.WorkingDirectory = '!collapse!';" ^
"$Shortcut.TargetPath = '!collapse!\CollapseLauncher.exe open -g 1 -r 0';" ^
"$Shortcut.Save()"
:: Honkai shortcut
PowerShell -Command "" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Genshin Impact.lnk');" ^
"$Shortcut.WorkingDirectory = '!collapse!';" ^
"$Shortcut.TargetPath = '!collapse!\CollapseLauncher.exe open -g 2 -r 0';" ^
"$Shortcut.Save()"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -180,6 +180,7 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '!
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '!local!\update.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '!local!\fix_nvidia_wsl.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat -OutFile '!local!\vencord_installer.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_mihoyo_shortcut.bat -OutFile '!local!\fix_mihoyo_shortcut.bat'"
:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '!local!\fix_obs_shortcut.bat'"
@ -402,6 +403,9 @@ PowerShell -Command "" ^
"Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $outFile"
:: Games shortcut
CMD /c "!local!\fix_mihoyo_shortcut.bat" yes
:: === FiveM ==
ECHO FiveM...
PowerShell -Command "" ^