mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
fix the windows scripts
This commit is contained in:
parent
4fe14351aa
commit
c32f16aef4
@ -13,25 +13,25 @@ set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
|
|||||||
echo %PATH%
|
echo %PATH%
|
||||||
|
|
||||||
WHERE git
|
WHERE git
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "GIT does not exist. Please set it up before running this script."
|
echo "GIT does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE node
|
WHERE node
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "NODE does not exist. Please set it up before running this script."
|
echo "NODE does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE npm
|
WHERE npm
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "NPM does not exist. Please set it up before running this script."
|
echo "NPM does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE gulp
|
WHERE gulp
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "GULP does not exist. Please set it up before running this script."
|
echo "GULP does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
@ -49,7 +49,7 @@ call npm install
|
|||||||
call npm i -g gulp-cli
|
call npm i -g gulp-cli
|
||||||
|
|
||||||
:: Set expiry if required
|
:: Set expiry if required
|
||||||
IF ("%EXPIRY_PERIOD%"=="") then (
|
IF "%EXPIRY_PERIOD%"=="" (
|
||||||
echo "Not setting expiry for the build!"
|
echo "Not setting expiry for the build!"
|
||||||
) else (
|
) else (
|
||||||
echo "Setting expiry to days: %EXPIRY_PERIOD%"
|
echo "Setting expiry to days: %EXPIRY_PERIOD%"
|
||||||
|
@ -13,25 +13,25 @@ set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
|
|||||||
echo %PATH%
|
echo %PATH%
|
||||||
|
|
||||||
WHERE git
|
WHERE git
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "GIT does not exist. Please set it up before running this script."
|
echo "GIT does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE node
|
WHERE node
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "NODE does not exist. Please set it up before running this script."
|
echo "NODE does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE npm
|
WHERE npm
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "NPM does not exist. Please set it up before running this script."
|
echo "NPM does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
|
|
||||||
WHERE gulp
|
WHERE gulp
|
||||||
if (%ERRORLEVEL% > 0) then (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo "GULP does not exist. Please set it up before running this script."
|
echo "GULP does not exist. Please set it up before running this script."
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
)
|
)
|
||||||
@ -49,7 +49,7 @@ call npm install
|
|||||||
call npm i -g gulp-cli
|
call npm i -g gulp-cli
|
||||||
|
|
||||||
:: Set expiry if required
|
:: Set expiry if required
|
||||||
IF ("%EXPIRY_PERIOD%"=="") then (
|
IF "%EXPIRY_PERIOD%"=="" (
|
||||||
echo "Not setting expiry for the build!"
|
echo "Not setting expiry for the build!"
|
||||||
) else (
|
) else (
|
||||||
echo "Setting expiry to days: %EXPIRY_PERIOD%"
|
echo "Setting expiry to days: %EXPIRY_PERIOD%"
|
||||||
|
Loading…
Reference in New Issue
Block a user