浏览代码

Try fix proxy issue?

Joachim M. Giæver 3 年之前
父节点
当前提交
8c9de3953e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      snap/snapcraft.yaml

+ 3 - 0
snap/snapcraft.yaml

@@ -99,9 +99,12 @@ parts:
     override-build: |
       set -x
       #sed -i 's/"zwave-js".*$/"zwave-js"\: "8.3.2-0-pr-3262-f5cdbca"/g' ${SNAPCRAFT_PART_BUILD}/package.json
+      printenv
       if [ -n "${http_proxy-}" ]; then
         export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
+        yarn config set httpProxy "${http_proxy}"
         export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
+        yarn config set httpsProxy "${http_proxy}"
       fi
       yarn install --immutable
       yarn run build \