From dc2d63f5e2e19b7b09cc7d88a2ceb7a8f39451e8 Mon Sep 17 00:00:00 2001 From: HUI Date: Fri, 25 Aug 2023 16:48:25 +0800 Subject: [PATCH] ci: set nvm as 14.17.3 --- ci/build/build_mac.sh | 7 +++++-- ci/build/build_windows.bat | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ci/build/build_mac.sh b/ci/build/build_mac.sh index 66d3daba0..74a535092 100644 --- a/ci/build/build_mac.sh +++ b/ci/build/build_mac.sh @@ -88,9 +88,12 @@ echo example_electron_version: $example_electron_version echo example_sdk_mode: $example_sdk_mode echo package_version: $package_version -export NVM_DIR="$HOME/.nvm" -source "${NVM_DIR}/nvm.sh" --install +export https_proxy=http://10.80.1.174:1080 http_proxy=http://10.80.1.174:1080 all_proxy=http://10.80.1.174:1080 +source ~/.nvm/nvm.sh --install +nvm ls-remote 14.17.3 +nvm install 14.17.3 nvm use 14.17.3 +export -n https_proxy http_proxy all_proxy pushd /tmp/jenkins/Electron-SDK diff --git a/ci/build/build_windows.bat b/ci/build/build_windows.bat index 2fd21eafe..24a39d96e 100644 --- a/ci/build/build_windows.bat +++ b/ci/build/build_windows.bat @@ -95,7 +95,14 @@ call npm config delete ARTIFACTORY_API_KEY echo npm config list call npm config list +set https_proxy=http://10.80.1.174:1080 +set http_proxy=http://10.80.1.174:1080 +set all_proxy=http://10.80.1.174:1080 +call nvm install 14.17.3 call nvm use 14.17.3 +set https_proxy= +set http_proxy= +set all_proxy= del /a /f /s *.zip del /a /f /s Electron-SDK