Adjust some windows scripts
This commit is contained in:
parent
eb05da5c65
commit
6cffa10d2b
23
Win/Scripts/devenver_env.bat
Normal file
23
Win/Scripts/devenver_env.bat
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
set root_path=%devenver_root%\NodeJS
|
||||||
|
set version=%~1
|
||||||
|
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
|
||||||
|
|
||||||
|
if "%~1"=="help" goto :help
|
||||||
|
if "%~1"=="" goto :help
|
||||||
|
if "%~1"=="--help" goto :help
|
||||||
|
if "%~1"=="/?" goto :help
|
||||||
|
goto :run
|
||||||
|
|
||||||
|
:help
|
||||||
|
echo USAGE: node_env.bat ^<version^> [^<command^>]
|
||||||
|
echo.
|
||||||
|
echo VERSIONS:
|
||||||
|
ls %root_path%
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:run
|
||||||
|
echo [SCRIPT] Adding to path '%root_path%\%version%' and executing '%remaining_args%'
|
||||||
|
set PATH=%root_path%\%version%;%PATH%
|
||||||
|
%remaining_args%
|
@ -24,5 +24,5 @@ goto :eof
|
|||||||
set msys_env=%~1
|
set msys_env=%~1
|
||||||
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
|
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
|
||||||
|
|
||||||
echo [SCRIPT] Executing '%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"'
|
echo [SCRIPT] Executing '%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"
|
||||||
%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"
|
%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
set root_path=%devenver_root%\NodeJS
|
set root_path=%devenver_root%\NodeJS
|
||||||
|
set version=%~1
|
||||||
|
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
|
||||||
|
|
||||||
if "%~1"=="help" goto :help
|
if "%~1"=="help" goto :help
|
||||||
if "%~1"=="" goto :help
|
if "%~1"=="" goto :help
|
||||||
@ -9,15 +11,13 @@ if "%~1"=="/?" goto :help
|
|||||||
goto :run
|
goto :run
|
||||||
|
|
||||||
:help
|
:help
|
||||||
echo USAGE: node_env.bat ^<version^> ^<command^>
|
echo USAGE: node_env.bat ^<version^> [^<command^>]
|
||||||
echo.
|
echo.
|
||||||
echo VERSIONS:
|
echo VERSIONS:
|
||||||
ls %root_path%
|
ls %root_path%
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:run
|
:run
|
||||||
set version=%~1
|
echo [SCRIPT] Adding to path '%root_path%\%version%' and executing '%remaining_args%'
|
||||||
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
|
set PATH=%root_path%\%version%;%PATH%
|
||||||
echo [SCRIPT] Executing %root_path%\%version%\%remaining_args%
|
%remaining_args%
|
||||||
|
|
||||||
%root_path%\%version%\%remaining_args%
|
|
||||||
|
@ -914,7 +914,7 @@ def get_manifest(is_windows):
|
|||||||
{
|
{
|
||||||
"path": exe_path,
|
"path": exe_path,
|
||||||
"symlink": symlink,
|
"symlink": symlink,
|
||||||
"add_to_devenv_path": True,
|
"add_to_devenv_path": False,
|
||||||
"checksum": checksum,
|
"checksum": checksum,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -945,7 +945,7 @@ def get_manifest(is_windows):
|
|||||||
{
|
{
|
||||||
"path": exe_path,
|
"path": exe_path,
|
||||||
"symlink": symlink,
|
"symlink": symlink,
|
||||||
"add_to_devenv_path": True,
|
"add_to_devenv_path": False,
|
||||||
"checksum": checksum,
|
"checksum": checksum,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user