From 684149eb50c318f4bbaebad6d88fda02224dfd20 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 22 Apr 2023 23:00:30 +0800 Subject: [PATCH] update setup time --- bin/setup-runtime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/setup-runtime b/bin/setup-runtime index 54c89455..30e727cf 100755 --- a/bin/setup-runtime +++ b/bin/setup-runtime @@ -25,13 +25,13 @@ __DIR__=$(cd "$(dirname "$0")" && pwd) __PROJECT__=$(cd ${__DIR__}/../ && pwd) # set download dir -__PHP_RUNTIME_URL__="https://github.com/swoole/swoole-src/releases/download/v5.0.1/swoole-cli-v5.0.1-${__OS_FIXED__}-${__ARCH__}.tar.xz" +__PHP_RUNTIME_URL__="https://github.com/swoole/swoole-src/releases/download/v4.8.13/swoole-cli-v4.8.13-${__OS_FIXED__}-${__ARCH__}.tar.xz" __COMPOSER_URL__="https://getcomposer.org/download/latest-stable/composer.phar" # download static-php binary (currently using swoole-cli temporarily) test -d ${__PROJECT__}/downloads || mkdir ${__PROJECT__}/downloads # download static php binary -test -f ${__PROJECT__}/downloads/runtime.tar.xz || curl -#fSL -o ${__PROJECT__}/downloads/runtime.tar.xz "$__PHP_RUNTIME_URL__" +test -f ${__PROJECT__}/downloads/runtime.tar.xz || { echo "Downloading $__PHP_RUNTIME_URL__ ..." && curl -#fSL -o ${__PROJECT__}/downloads/runtime.tar.xz "$__PHP_RUNTIME_URL__" ; } test -f ${__DIR__}/php || { tar -xf ${__PROJECT__}/downloads/runtime.tar.xz -C ${__DIR__}/ && mv ${__DIR__}/swoole-cli ${__DIR__}/php && rm ${__DIR__}/LICENSE ; } # (TODO: temporarily use swoole-cli as php) chmod +x ${__DIR__}/php # download composer