Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Fixing the windows build script nuking the PATH env variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcottontensor committed Oct 25, 2023
1 parent c0e715c commit 090cc89
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 142 deletions.
66 changes: 0 additions & 66 deletions SignallingWebServer/platform_scripts/cmd/refreshenv.cmd

This file was deleted.

24 changes: 0 additions & 24 deletions SignallingWebServer/platform_scripts/cmd/setenv/License.txt

This file was deleted.

46 changes: 0 additions & 46 deletions SignallingWebServer/platform_scripts/cmd/setenv/ReadMe.txt

This file was deleted.

Binary file not shown.
12 changes: 6 additions & 6 deletions SignallingWebServer/platform_scripts/cmd/setup_frontend.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
@Rem Save our current directory (the NodeJS dir) in a variable
set "NodeDir=%CD%\SignallingWebServer\platform_scripts\cmd\node"

@Rem Prepend NodeDir to PATH temporarily using a custom tool called SetEnv
call SignallingWebServer\platform_scripts\cmd\setenv\SetEnv.exe -uap PATH %%%%"%NodeDir%"
@Rem Refresh the cmd session with new PATH
call %~dp0\refreshenv.cmd
@rem Save the old path variable
set OLDPATH=%PATH%
@Rem Prepend NodeDir to PATH temporarily
set PATH=%PATH%;%NodeDir%

@Rem Do npm install in the Frontend\lib directory (note we use start because that loads PATH)
echo ----------------------------
Expand All @@ -73,7 +73,7 @@
echo End of build reference frontend step.
echo ----------------------------

@Rem Remove our NodeJS from the PATH
call SignallingWebServer\platform_scripts\cmd\setenv\SetEnv.exe -ud PATH %%%%"%NodeDir%"
@Rem Restore path
set PATH=%OLDPATH%

goto :eof

0 comments on commit 090cc89

Please sign in to comment.