mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-23 07:39:59 +00:00
commit
17c37b12b0
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if "%DEBUG%" == "" @echo off
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if "%DEBUG%" == "" @echo off
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
@ -11,67 +11,53 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@echo off
|
@echo off
|
||||||
@if NOT "%DEBUG%" == "" @echo on
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
@rem
|
||||||
@rem Hvigor startup script for Windows
|
@rem -------------------------------------------------------------------
|
||||||
|
@rem Hvigor startup script for Windows, version 1.0.0
|
||||||
|
@rem
|
||||||
|
@rem Required ENV vars:
|
||||||
|
@rem ------------------
|
||||||
|
@rem NODE_HOME - location of a Node home dir
|
||||||
|
@rem or
|
||||||
|
@rem Add %NODE_HOME%/bin to the PATH environment variable
|
||||||
|
@rem -------------------------------------------------------------------
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set NODE_EXE_PATH=""
|
||||||
|
set APP_HOME=.
|
||||||
|
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
||||||
|
set NODE_EXE=node.exe
|
||||||
|
@rem set NODE_OPTS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
|
if not defined NODE_OPTS set NODE_OPTS="--"
|
||||||
set NODE_EXE=node.exe
|
|
||||||
|
|
||||||
goto start
|
|
||||||
|
|
||||||
:start
|
|
||||||
@rem Find node.exe
|
@rem Find node.exe
|
||||||
if defined NODE_HOME goto findNodeFromNodeHome
|
if defined NODE_HOME (
|
||||||
|
set NODE_HOME=%NODE_HOME:"=%
|
||||||
|
set "PATH=%PATH%;%NODE_HOME%"
|
||||||
|
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
||||||
|
)
|
||||||
|
|
||||||
%NODE_EXE% --version >NUL 2>&1
|
%NODE_EXE% --version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" (
|
||||||
|
"%NODE_EXE%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else if exist "%NODE_EXE_PATH%" (
|
||||||
|
"%NODE_EXE_PATH%" "%NODE_OPTS%" "%WRAPPER_MODULE_PATH%" %*
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the NODE_HOME variable in your environment to match the
|
||||||
|
echo location of your NodeJs installation.
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
if "%ERRORLEVEL%" == "0"(
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
echo.
|
) else (
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
exit /b %ERRORLEVEL%
|
||||||
echo location of your NodeJs installation.
|
)
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findNodeFromNodeHome
|
|
||||||
set NODE_HOME=%NODE_HOME:"=%
|
|
||||||
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
|
|
||||||
|
|
||||||
if exist "%NODE_EXE_PATH%" goto execute
|
|
||||||
echo.
|
|
||||||
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the NODE_HOME variable in your environment to match the
|
|
||||||
echo location of your NodeJs installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Execute hvigor
|
|
||||||
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
|
|
||||||
|
|
||||||
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:hvigorwEnd
|
|
||||||
if "%OS%" == "Windows_NT" endlocal
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user