Files
Paradise/tools/hooks/Install.bat
S34N be9a8c8c14 Fix TGUI deconflict hooks, makes them work on windows (#24686)
* Lets us install tgui merge drivers on windows

* test this

* gamer mode

* debug

* do it like this

* test

* test this

* stop it being weirdly relative

* more relative fixes

* try cat

* indentation

* update CI stuff to cache

* correct this

* yarn

* yarn consistency

* do we even need to do this? (no we don't)

* properly cache yarn deps in ci

* Why do we even have that step

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-20 20:10:29 +00:00

19 lines
581 B
Batchfile

@call "%~dp0\..\bootstrap\python" -m hooks.install %*
@echo off
set /p choice=Do you want to install TGUI hooks (requires Node.js)? (Y/N):
if /i "%choice%"=="Y" (
@echo off
rem Copyright (c) 2020 Aleksej Komarov
rem SPDX-License-Identifier: MIT
call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\..\..\tgui\bin\tgui_.ps1" --install-git-hooks %*
rem Pause if launched in a separate shell unless initiated from powershell
echo %PSModulePath% | findstr %USERPROFILE% >NUL
if %errorlevel% equ 0 (
pause
exit 0
)
echo %cmdcmdline% | find /i "/c"
)
pause