-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
10 changed files
with
67 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
## Merger hooks, run tools/hooks/install.bat or install.sh to set up | ||
## Merge hooks, run tools/hooks/install.bat or install.sh to set up | ||
*.dmm text eol=lf merge=dmm | ||
*.dmi binary merge=dmi | ||
## TGUI bundle merge drivers | ||
*.bundle.* binary merge=tgui-merge-bundle | ||
*.chunk.* binary merge=tgui-merge-bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
source _build_dependencies.sh | ||
|
||
source ~/.nvm/nvm.sh | ||
nvm install $NODE_VERSION | ||
nvm use $NODE_VERSION | ||
npm install --global yarn | ||
python3 -m pip install json5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
@call "%~dp0\..\bootstrap\python" -m hooks.install %* | ||
@pause | ||
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@call "%~dp0\..\bootstrap\python" -m hooks.install --uninstall %* | ||
git config --unset merge.tgui-merge-bundle.driver | ||
@pause |