16e7c69efSopenharmony_ci@if "%DEBUG%" == "" @echo off 26e7c69efSopenharmony_ci@rem ########################################################################## 36e7c69efSopenharmony_ci@rem 46e7c69efSopenharmony_ci@rem Hvigor startup script for Windows 56e7c69efSopenharmony_ci@rem 66e7c69efSopenharmony_ci@rem ########################################################################## 76e7c69efSopenharmony_ci 86e7c69efSopenharmony_ci@rem Set local scope for the variables with windows NT shell 96e7c69efSopenharmony_ciif "%OS%"=="Windows_NT" setlocal 106e7c69efSopenharmony_ci 116e7c69efSopenharmony_ciset DIRNAME=%~dp0 126e7c69efSopenharmony_ciif "%DIRNAME%" == "" set DIRNAME=. 136e7c69efSopenharmony_ciset APP_BASE_NAME=%~n0 146e7c69efSopenharmony_ciset APP_HOME=%DIRNAME% 156e7c69efSopenharmony_ci 166e7c69efSopenharmony_ci@rem Resolve any "." and ".." in APP_HOME to make it shorter. 176e7c69efSopenharmony_cifor %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 186e7c69efSopenharmony_ci 196e7c69efSopenharmony_ciset WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js 206e7c69efSopenharmony_ciset NODE_EXE=node.exe 216e7c69efSopenharmony_ci 226e7c69efSopenharmony_cigoto start 236e7c69efSopenharmony_ci 246e7c69efSopenharmony_ci:start 256e7c69efSopenharmony_ci@rem Find node.exe 266e7c69efSopenharmony_ciif defined NODE_HOME goto findNodeFromNodeHome 276e7c69efSopenharmony_ci 286e7c69efSopenharmony_ci%NODE_EXE% --version >NUL 2>&1 296e7c69efSopenharmony_ciif "%ERRORLEVEL%" == "0" goto execute 306e7c69efSopenharmony_ci 316e7c69efSopenharmony_ciecho. 326e7c69efSopenharmony_ciecho ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. 336e7c69efSopenharmony_ciecho. 346e7c69efSopenharmony_ciecho Please set the NODE_HOME variable in your environment to match the 356e7c69efSopenharmony_ciecho location of your NodeJs installation. 366e7c69efSopenharmony_ci 376e7c69efSopenharmony_cigoto fail 386e7c69efSopenharmony_ci 396e7c69efSopenharmony_ci:findNodeFromNodeHome 406e7c69efSopenharmony_ciset NODE_HOME=%NODE_HOME:"=% 416e7c69efSopenharmony_ciset NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE% 426e7c69efSopenharmony_ci 436e7c69efSopenharmony_ciif exist "%NODE_EXE_PATH%" goto execute 446e7c69efSopenharmony_ciecho. 456e7c69efSopenharmony_ciecho ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. 466e7c69efSopenharmony_ciecho. 476e7c69efSopenharmony_ciecho Please set the NODE_HOME variable in your environment to match the 486e7c69efSopenharmony_ciecho location of your NodeJs installation. 496e7c69efSopenharmony_ci 506e7c69efSopenharmony_cigoto fail 516e7c69efSopenharmony_ci 526e7c69efSopenharmony_ci:execute 536e7c69efSopenharmony_ci@rem Execute hvigor 546e7c69efSopenharmony_ci"%NODE_EXE%" "%WRAPPER_MODULE_PATH%" %* 556e7c69efSopenharmony_ci 566e7c69efSopenharmony_ciif "%ERRORLEVEL%" == "0" goto hvigorwEnd 576e7c69efSopenharmony_ci 586e7c69efSopenharmony_ci:fail 596e7c69efSopenharmony_ciexit /b 1 606e7c69efSopenharmony_ci 616e7c69efSopenharmony_ci:hvigorwEnd 626e7c69efSopenharmony_ciif "%OS%" == "Windows_NT" endlocal 636e7c69efSopenharmony_ci 646e7c69efSopenharmony_ci:end 65