File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
sapi/quickstart/windows/msys2-build Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 5151pacman -S --needed --noconfirm git curl wget openssl
5252pacman -S --needed --noconfirm zip unzip xz gcc gcc-libs cmake make
5353pacman -S --needed --noconfirm re2c
54- pacman -S --needed --noconfirm openssl-devel libreadline
5554pacman -S --needed --noconfirm lzip
5655pacman -S --needed --noconfirm zip unzip
5756pacman -S --needed --noconfirm zlib-devel
5857pacman -S --needed --noconfirm bison automake autoconf libtool coreutils
58+ pacman -S --needed --noconfirm openssl-devel libreadline-devel libiconv-devel
5959pacman -S --needed --noconfirm libcurl-devel libxml2-devel libxslt-devel
6060pacman -S --needed --noconfirm libbz2-devel liblz4-devel liblzma-devel libcares-devel
61- pacman -S --needed --noconfirm libyaml-devel libzstd-devel libreadline-devel
62- pacman -S --needed --noconfirm libssh2-devel libidn2-devel gettext-devel
6361pacman -S --needed --noconfirm libzstd-devel
64- pacman -S --needed --noconfirm icu-devel
65- pacman -S --needed --noconfirm libsqlite-devel libsqlite
62+ pacman -S --needed --noconfirm libyaml-devel
63+ pacman -S --needed --noconfirm libssh2-devel libidn2-devel gettext-devel
64+ pacman -S --needed --noconfirm libsqlite-devel
6665pacman -S --needed --noconfirm libedit-devel
6766pacman -S --needed --noconfirm gmp-devel
6867pacman -S --needed --noconfirm brotli-devel
Original file line number Diff line number Diff line change 9797
9898case " $MIRROR " in
9999china)
100- APP_DOWNLOAD_URL=" https://wenda-1252906962.file.myqcloud .com/dist/${APP_NAME} -${APP_VERSION} -${OS} -${ARCH} .tar.xz"
100+ APP_DOWNLOAD_URL=" https://storage.swoole .com/dist/${APP_NAME} -${APP_VERSION} -${OS} -${ARCH} .tar.xz"
101101 COMPOSER_DOWNLOAD_URL=" https://mirrors.tencent.com/composer/composer.phar"
102102 if [ $OS = ' windows' ]; then
103- APP_DOWNLOAD_URL=" https://wenda-1252906962.file.myqcloud .com/dist/${APP_NAME} -${APP_VERSION} -cygwin-${ARCH} .zip"
103+ APP_DOWNLOAD_URL=" https://storage.swoole .com/dist/${APP_NAME} -${APP_VERSION} -cygwin-${ARCH} .zip"
104104 fi
105105 ;;
106106
Original file line number Diff line number Diff line change 3636
3737 if ($mirror -eq ' china' )
3838 {
39- $APP_DOWNLOAD_URL = " https://wenda-1252906962.file.myqcloud .com/dist/$APP_NAME -$APP_VERSION -cygwin-x64.zip"
39+ $APP_DOWNLOAD_URL = " https://storage.swoole .com/dist/$APP_NAME -$APP_VERSION -cygwin-x64.zip"
4040 }
4141 if ($proxy -ne ' ' )
4242 {
4747 {
4848 if (Get-Command " curl.exe" - ErrorAction SilentlyContinue)
4949 {
50- curl.exe - fSLo " $TMP_APP_RUNTIME \$FILE " $APP_DOWNLOAD_URL
50+ curl.exe - H ' Referer: https://www.swoole.com/download ' - H ' User-Agent: download swoole-cli runtime with setup-swoole-cli-runtime.ps1 ' - fSLo " $TMP_APP_RUNTIME \$FILE " $APP_DOWNLOAD_URL
5151 }
5252 else
5353 {
54+ $headers = @ {
55+ ' User-Agent' = ' download swoole-cli runtime with setup-swoole-cli-runtime.ps1'
56+ ' Referer' = ' https://www.swoole.com/download'
57+ }
5458 # Invoke-WebRequest $APP_DOWNLOAD_URL -UseBasicParsing -OutFile $FILE
5559 # Invoke-WebRequest -Uri $APP_DOWNLOAD_URL -OutFile $FILE
56- irm $APP_DOWNLOAD_URL - outfile " $TMP_APP_RUNTIME \$FILE "
60+ irm $APP_DOWNLOAD_URL - Headers $headers - outfile " $TMP_APP_RUNTIME \$FILE "
5761 }
5862 }
5963
Original file line number Diff line number Diff line change 121121
122122case " $MIRROR " in
123123china)
124- APP_DOWNLOAD_URL=" https://wenda-1252906962.file.myqcloud .com/dist/${APP_NAME} -${APP_VERSION} -${OS} -${ARCH} .tar.xz"
124+ APP_DOWNLOAD_URL=" https://storage.swoole .com/dist/${APP_NAME} -${APP_VERSION} -${OS} -${ARCH} .tar.xz"
125125 COMPOSER_DOWNLOAD_URL=" https://mirrors.tencent.com/composer/composer.phar"
126126 if [ $OS = ' windows' ]; then
127- APP_DOWNLOAD_URL=" https://wenda-1252906962.file.myqcloud .com/dist/${APP_NAME} -${APP_VERSION} -cygwin-${ARCH} .zip"
127+ APP_DOWNLOAD_URL=" https://storage.swoole .com/dist/${APP_NAME} -${APP_VERSION} -cygwin-${ARCH} .zip"
128128 fi
129129 ;;
130130
You can’t perform that action at this time.
0 commit comments