@@ -17,15 +17,21 @@ mkdir -p pool/ext
1717mkdir -p ${__PROJECT__} /var/download-box/
1818
1919cd ${__PROJECT__} /var/download-box/
20+ SWOOLE_CLI_RELEASE_VERSION=" v6.1.1.1"
21+ ALL_DEPS_HASH=" 39983e8b050bfc31265b6c385220026d58ebb04f72cba3ff9f461c97b546e25a"
2022
21- if [ -f " ${__PROJECT__} /sapi/PHP-VERSION.conf" ]; then
22- DOMAIN=' https://github.com/swoole/swoole-cli/releases/download/v6.0.0.0/'
23- ALL_DEPS_HASH=" a55699ecee994032f33266dfa37eabb49f1f6d6b6b65cdcf7b881cac09c63bea"
24- else
23+ DOMAIN=" https://github.com/swoole/swoole-cli/releases/download/${SWOOLE_CLI_RELEASE_VERSION} /"
24+
25+ # show sha256sum
26+ # curl -fSL https://github.com/swoole/swoole-cli/releases/download/v6.1.1.1/all-deps.zip.sha256sum && echo
27+ # download command
28+ # curl -fSLo all-deps.zip https://github.com/swoole/swoole-cli/releases/download/v6.1.1.1/all-deps.zip
29+
30+ if [ ! -f " ${__PROJECT__} /sync-source-code.php" ]; then
2531 # show sha256sum
26- # curl -LS https://github.com/swoole/build-static-php/releases/download/v1.10 .0/all-deps.zip.sha256sum | cat
27- DOMAIN=' https://github.com/swoole/build-static-php/releases/download/v1.10 .0/'
28- ALL_DEPS_HASH=" 62681e789de493c6aee51c9b5ad7ee9c37684ac6b2bb867e086f6ca9c70bca44 "
32+ # curl -fSL https://github.com/swoole/build-static-php/releases/download/v1.11 .0/all-deps.zip.sha256sum && echo
33+ DOMAIN=' https://github.com/swoole/build-static-php/releases/download/v1.11 .0/'
34+ ALL_DEPS_HASH=" 6b96e505c066c1a628d05b899edd81b237ce78a617f2c754df227bfcb3a8a4a5 "
2935fi
3036
3137DOWNLOAD_ARCHIVE=0
@@ -34,7 +40,7 @@ while [ $# -gt 0 ]; do
3440 --mirror)
3541 if [ " $2 " = ' china' ]; then
3642 DOMAIN=' https://swoole-cli.jingjingxyk.com/'
37- if [ ! -f " ${__PROJECT__} /sapi/PHP-VERSION.conf " ]; then
43+ if [ ! -f " ${__PROJECT__} /sync-source-code.php " ]; then
3844 DOMAIN=' https://php-cli.jingjingxyk.com/'
3945 fi
4046 fi
@@ -48,9 +54,14 @@ while [ $# -gt 0 ]; do
4854 NO_PROXY=" 127.0.0.0/8,10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
4955 NO_PROXY=" ${NO_PROXY} ,::1/128,fe80::/10,fd00::/8,ff00::/8"
5056 NO_PROXY=" ${NO_PROXY} ,localhost"
51- NO_PROXY=" ${NO_PROXY} ,.aliyuncs.com,.aliyun.com,.tencent.com"
57+ NO_PROXY=" ${NO_PROXY} ,.aliyuncs.com,.aliyun.com"
58+ NO_PROXY=" ${NO_PROXY} ,.tsinghua.edu.cn,.ustc.edu.cn"
59+ NO_PROXY=" ${NO_PROXY} ,.tencent.com"
60+ NO_PROXY=" ${NO_PROXY} ,ftpmirror.gnu.org"
61+ NO_PROXY=" ${NO_PROXY} ,gitee.com,gitcode.com"
5262 NO_PROXY=" ${NO_PROXY} ,.myqcloud.com,.swoole.com"
53- export NO_PROXY=" ${NO_PROXY} ,.tsinghua.edu.cn,.ustc.edu.cn,.npmmirror.com"
63+ NO_PROXY=" ${NO_PROXY} ,.jingjingxyk.com,jingjingxyk.cn"
64+ export NO_PROXY=" ${NO_PROXY} ,.npmmirror.com"
5465 ;;
5566 --* )
5667 echo " Illegal option $1 "
0 commit comments