From ad5981bacdee2322fea15478ae3af8a5784e011f Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Sun, 25 Feb 2024 12:05:27 +0800 Subject: [PATCH] Update to node 20.11.1 --- .github/workflows/msbuild.yml | 6 +++--- build-boost.bat | 6 +++--- build-nodegyp.bat | 2 +- build-qhttp.bat | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 1e220cc..2c8903d 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -89,7 +89,7 @@ jobs: if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" ( "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=x86 -winsdk=10.0.17763.0 cd qhttp - qmake qhttp.pro -spec win32-msvc "CONFIG+=32bit" "CONFIG+=qtquickcompiler" "INCLUDEPATH+=%GITHUB_WORKSPACE%\winsdk\Include\10.0.17763.0\ucrt" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\um\x86" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\ucrt\x86" + qmake qhttp.pro -spec win32-msvc "CONFIG+=32bit release" "CONFIG+=qtquickcompiler" "INCLUDEPATH+=%GITHUB_WORKSPACE%\winsdk\Include\10.0.17763.0\ucrt" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\um\x86" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\ucrt\x86" "${{env.Qt5_Dir}}/../../Tools/QtCreator/bin/jom/jom.exe" -f MakeFile qmake_all "${{env.Qt5_Dir}}/../../Tools/QtCreator/bin/jom/jom.exe" copy "%GITHUB_WORKSPACE%\qhttp\xbin\qhttp.dll" "%GITHUB_WORKSPACE%\build\" @@ -105,7 +105,7 @@ jobs: if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" ( "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=x86 -winsdk=10.0.17763.0 cd CGAssistant - qmake CGAssistant.pro -spec win32-msvc "CONFIG+=32bit" "CONFIG+=qtquickcompiler" "INCLUDEPATH+=%GITHUB_WORKSPACE%\winsdk\Include\10.0.17763.0\ucrt" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\um\x86" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\ucrt\x86" + qmake CGAssistant.pro -spec win32-msvc "CONFIG+=32bit release" "CONFIG+=qtquickcompiler" "INCLUDEPATH+=%GITHUB_WORKSPACE%\winsdk\Include\10.0.17763.0\ucrt" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\um\x86" "LIBS += -L%GITHUB_WORKSPACE%\winsdk\Lib\10.0.17763.0\ucrt\x86" "${{env.Qt5_Dir}}/../../Tools/QtCreator/bin/jom/jom.exe" -f MakeFile qmake_all "${{env.Qt5_Dir}}/../../Tools/QtCreator/bin/jom/jom.exe" copy "%GITHUB_WORKSPACE%\CGassistant\release\CGassistant.exe" "%GITHUB_WORKSPACE%\build\" @@ -115,7 +115,7 @@ jobs: - name: Setup node environment uses: actions/setup-node@v2 with: - node-version: '14.16' + node-version: '20.11.1' architecture: 'x86' - name: Install node-gyp diff --git a/build-boost.bat b/build-boost.bat index e8ce787..82e44a6 100644 --- a/build-boost.bat +++ b/build-boost.bat @@ -1,6 +1,6 @@ cd /d "%~dp0" -for /f "usebackq tokens=*" %%i in (`vswhere -version [15^,16^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( +for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( set InstallDir=%%i ) @@ -16,8 +16,8 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" ( "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=x86 - b2 --toolset=msvc-14.1 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" link=static stage - b2 --toolset=msvc-14.1 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" runtime-link=static link=static stage + b2 --toolset=msvc-14.2 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" link=static stage + b2 --toolset=msvc-14.2 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" runtime-link=static link=static stage pause ) \ No newline at end of file diff --git a/build-nodegyp.bat b/build-nodegyp.bat index c4ed225..b5a7487 100644 --- a/build-nodegyp.bat +++ b/build-nodegyp.bat @@ -1,6 +1,6 @@ cd /d "%~dp0" -for /f "usebackq tokens=*" %%i in (`vswhere -version [15^,16^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( +for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( set InstallDir=%%i ) diff --git a/build-qhttp.bat b/build-qhttp.bat index d5569f9..21f7175 100644 --- a/build-qhttp.bat +++ b/build-qhttp.bat @@ -8,7 +8,7 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" ( cd qhttp - qmake qhttp.pro -spec win32-msvc "CONFIG+=qtquickcompiler" + qmake qhttp.pro -spec win32-msvc "CONFIG+=qtquickcompiler release" jom -f MakeFile qmake_all