Hardcoded NWjs version to 0.72.0 as the latest version throws error on CentOS 7

This commit is contained in:
Akshay Joshi 2023-03-06 15:39:18 +05:30
parent 843925e5bc
commit bff425f49e
5 changed files with 25 additions and 11 deletions

View File

@ -274,10 +274,16 @@ REM Main build sequence Ends
REM YARN END
REM WGET
FOR /f "tokens=2 delims='" %%i IN ('yarn info nw ^| findstr "latest: "') DO SET "NW_VERSION=%%i"
:GET_NW
wget https://dl.nwjs.io/v%NW_VERSION%/nwjs-v%NW_VERSION%-win-x64.zip -O "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip"
IF %ERRORLEVEL% NEQ 0 GOTO GET_NW
REM Comment out the below for loop as the latest version having
REM some problem to launch on CentOS 7, so for
REM the time being hardcoded the version to 0.72.0
REM FOR /f "tokens=2 delims='" %%i IN ('yarn info nw ^| findstr "latest: "') DO SET "NW_VERSION=%%i"
REM :GET_NW
REM wget https://dl.nwjs.io/v%NW_VERSION%/nwjs-v%NW_VERSION%-win-x64.zip -O "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip"
REM IF %ERRORLEVEL% NEQ 0 GOTO GET_NW
SET "NW_VERSION=0.72.0"
wget https://dl.nwjs.io/v%NW_VERSION%/nwjs-v%NW_VERSION%-win-x64.zip -O "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip"
tar -C "%TMPDIR%" -xvf "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip" || EXIT /B 1
REM WGET END

View File

@ -130,7 +130,11 @@ _build_runtime() {
# YARN END
# WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# Comment out the below line as the latest version (0.73.0) having some
# problem in launching the pgAdmin 4 in CentOS 7
# hardcoded the version to 0.72.0
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.72.0"
pushd "${BUILDROOT}" > /dev/null || exit
while true;do

View File

@ -34,7 +34,11 @@ _build_runtime() {
# YARN END
# WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# Comment out the below line as the latest version (0.73.0) having some
# problem in launching the pgAdmin 4 in CentOS 7
# hardcoded the version to 0.72.0
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.72.0"
pushd "${BUILD_ROOT}" > /dev/null || exit
while true;do

View File

@ -25,7 +25,7 @@
},
"devDependencies": {
"eslint": "^6.3.0",
"nw": "^0.70.0"
"nw": "0.72.0"
},
"scripts": {
"linter": "yarn eslint --no-eslintrc -c .eslintrc.js --ext .js ."

View File

@ -1008,10 +1008,10 @@ number-is-nan@^1.0.0:
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==
nw@^0.70.0:
version "0.70.1"
resolved "https://registry.yarnpkg.com/nw/-/nw-0.70.1.tgz#592bd715097970090440183974d79ae5005ad377"
integrity sha512-q0zyS04L+d8vzxC5jCnfouu1G0NR3PTAuTT9x4GY25i14TFk+7H8wQmrZCV9MUvEWK7m/NkjcfxRmHkFqog7zw==
nw@0.72.0:
version "0.72.0"
resolved "https://registry.yarnpkg.com/nw/-/nw-0.72.0.tgz#b8d340c165756b2f07320e999f5aaa486131e38f"
integrity sha512-uMLsvXe3cDJ+YY8Jcd+YoLg7ggqJAbpTskNx0X21Z6gn9oWWnte9eJsWNC/9J5itg3TzzqyvIyUfXsMGekqPmw==
dependencies:
chalk "~1.1.3"
decompress "^4.2.0"