Hardcoded the version of NWjs to 0.55.0 in the build scripts, as the latest version cause some problems.

This commit is contained in:
Akshay Joshi 2021-09-28 10:07:59 +05:30
parent 483e2ca8d0
commit f6a9af0aa4
3 changed files with 19 additions and 7 deletions

View File

@ -272,11 +272,17 @@ REM Main build sequence Ends
REM YARN END REM YARN END
REM WGET REM WGET
FOR /f "tokens=2 delims='" %%i IN ('yarn info nw ^| findstr "latest: "') DO SET "NW_VERSION=%%i" REM Comment out the below for loop as the latest version (0.57.0) having
:GET_NW REM some problem, so for the time being hardcoded the version to 0.55.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" REM FOR /f "tokens=2 delims='" %%i IN ('yarn info nw ^| findstr "latest: "') DO SET "NW_VERSION=%%i"
IF %ERRORLEVEL% NEQ 0 GOTO GET_NW 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 tar -C "%TMPDIR%" -xvf "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip" || EXIT /B 1
SET "NW_VERSION=0.55.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 tar -C "%TMPDIR%" -xvf "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64.zip" || EXIT /B 1
REM WGET END REM WGET END

View File

@ -125,7 +125,10 @@ _build_runtime() {
# YARN END # YARN END
# WGET: # WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}') # Comment out the below line as the latest version (0.57.0) having some
# problem, so for the time being hardcoded the version to 0.55.0
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.55.0"
pushd "${BUILDROOT}" > /dev/null pushd "${BUILDROOT}" > /dev/null
while true;do while true;do
wget https://dl.nwjs.io/v${NW_VERSION}/nwjs-v${NW_VERSION}-linux-x64.tar.gz && break wget https://dl.nwjs.io/v${NW_VERSION}/nwjs-v${NW_VERSION}-linux-x64.tar.gz && break

View File

@ -32,7 +32,10 @@ _build_runtime() {
# YARN END # YARN END
# WGET: # WGET:
NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}') # Comment out the below line as the latest version (0.57.0) having some
# problem, so for the time being hardcoded the version to 0.55.0
# NW_VERSION=$(yarn info nw | grep latest | awk -F "'" '{ print $2}')
NW_VERSION="0.55.0"
pushd "${BUILD_ROOT}" > /dev/null pushd "${BUILD_ROOT}" > /dev/null
while true;do while true;do
wget https://dl.nwjs.io/v${NW_VERSION}/nwjs-v${NW_VERSION}-osx-x64.zip && break wget https://dl.nwjs.io/v${NW_VERSION}/nwjs-v${NW_VERSION}-osx-x64.zip && break