Pin NW.js to 0.72.0 in build files

pull/6082/head
Aditya Toshniwal 2023-04-03 15:21:14 +05:30
parent 3eac4ba59e
commit c80f760d07
3 changed files with 17 additions and 6 deletions

View File

@ -274,10 +274,15 @@ 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 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
REM Remove the above commented code once below issue is fixed
REM Pining NWjs because of https://github.com/nwjs/nw.js/issues/8039 in 0.74.0
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

@ -141,7 +141,10 @@ _build_runtime() {
# YARN END
# WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# Remove the above commented code once below issue is fixed
# Pining NWjs because of https://github.com/nwjs/nw.js/issues/8039 in 0.74.0
NW_VERSION="0.72.0"
pushd "${BUILDROOT}" > /dev/null || exit
while true;do

View File

@ -34,7 +34,10 @@ _build_runtime() {
# YARN END
# WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
# Remove the above commented code once below issue is fixed
# Pining NWjs because of https://github.com/nwjs/nw.js/issues/8039 in 0.74.0
NW_VERSION="0.72.0"
pushd "${BUILD_ROOT}" > /dev/null || exit
while true;do