Downgrade NWjs to 0.62.2. The latest version does not work on Ubuntu 20.04.

refs #7442
This commit is contained in:
Akshay Joshi 2022-06-21 16:49:43 +05:30
parent f97e294c80
commit e8f0454b39
5 changed files with 25 additions and 11 deletions

View File

@ -273,10 +273,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 https://github.com/nwjs/nw.js/issues/7902, so for
REM the time being hardcoded the version to 0.62.2
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.62.2"
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

@ -128,7 +128,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 having some
# problem https://github.com/nwjs/nw.js/issues/7902, so for the time being
# hardcoded the version to 0.62.2
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.62.2"
pushd "${BUILDROOT}" > /dev/null
while true;do

View File

@ -33,7 +33,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 having some
# problem https://github.com/nwjs/nw.js/issues/7902, so for the time being
# hardcoded the version to 0.62.2
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.62.2"
pushd "${BUILD_ROOT}" > /dev/null
while true;do

View File

@ -24,7 +24,7 @@
},
"devDependencies": {
"eslint": "^6.3.0",
"nw": "^0.64.0"
"nw": "0.62.2"
},
"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 sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
nw@^0.64.0:
version "0.64.1"
resolved "https://registry.yarnpkg.com/nw/-/nw-0.64.1.tgz#eaf96dd22081a679316b86d31405a54b37ba7181"
integrity sha512-+h1qQlhBdW56Xbe5EVojb2zfjo/fccM7rzecHTiNBl++FHA3nAGxn2UrwmqpUa+v/mQ5+EUFXpBlmkbl4y4fEg==
nw@0.62.2:
version "0.62.2"
resolved "https://registry.yarnpkg.com/nw/-/nw-0.62.2.tgz#a00e3e3caac5dc80da6897cfc6ef2af942b5c0fa"
integrity sha512-g9RNUUmumsMC75M5I5DGdPvszCEIefCHHZYOrMzpR6oQ6MrQmT29ejsBXBU5XVE2kfPJ5Eu9izvJTbc7uIqwgg==
dependencies:
chalk "~1.1.3"
decompress "^4.2.0"