Skip to content

Commit

Permalink
新增 setup-swow-cli-runtime.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jul 30, 2024
1 parent 806f9f7 commit a7bc9f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 160 deletions.
156 changes: 0 additions & 156 deletions setup-php-fpm-runtime.sh

This file was deleted.

9 changes: 5 additions & 4 deletions setup-php-cli-runtime.sh → setup-swow-cli-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ case $ARCH in
'x86_64')
ARCH="x64"
;;
'aarch64' | 'arm64' )
'aarch64' | 'arm64')
ARCH="arm64"
;;
*)
Expand All @@ -50,26 +50,27 @@ esac

APP_VERSION='v8.2.13'
APP_NAME='php-cli'
VERSION='v1.2.2'
VERSION='v1.2.0'

mkdir -p bin/runtime
mkdir -p var/runtime

cd ${__PROJECT__}/var/runtime

APP_DOWNLOAD_URL="https://github.com/swoole/build-static-php/releases/download/${VERSION}/${APP_NAME}-${APP_VERSION}-${OS}-${ARCH}.tar.xz"
APP_DOWNLOAD_URL="https://github.com/jingjingxyk/build-swow-cli/releases/download/${VERSION}/${APP_NAME}-${APP_VERSION}-${OS}-${ARCH}.tar.xz"
COMPOSER_DOWNLOAD_URL="https://getcomposer.org/download/latest-stable/composer.phar"
CACERT_DOWNLOAD_URL="https://curl.se/ca/cacert.pem"

if [ $OS = 'windows' ]; then
APP_DOWNLOAD_URL="https://github.com/swoole/build-static-php/releases/download/${VERSION}/${APP_NAME}-${APP_VERSION}-cygwin-${ARCH}.zip"
APP_DOWNLOAD_URL="https://github.com/jingjingxyk/build-swow-cli/releases/download/${VERSION}/${APP_NAME}-${APP_VERSION}-cygwin-${ARCH}.zip"
fi

MIRROR=''
while [ $# -gt 0 ]; do
case "$1" in
--mirror)
MIRROR="$2"
MIRROR="" # 暂无镜像
;;
--proxy)
export HTTP_PROXY="$2"
Expand Down

0 comments on commit a7bc9f6

Please sign in to comment.