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