fix: 解决部分 php 版本构建失败的问题

This commit is contained in:
zhengkunwang223
2023-09-11 17:54:21 +08:00
parent ca30c8a7a0
commit c75ccdb14d
14 changed files with 301 additions and 779 deletions
@@ -1,8 +1,8 @@
#!/bin/sh
# The latest mirror's composer version only support for PHP 7.2.5
# The latest mirror's composer version only support for PHP 5.6.0
# And if your PHP version is lesser than that, will be download supported version.
supportLatest=$(php -r "echo version_compare(PHP_VERSION, '7.2.5', '>');")
supportLatest=$(php -r "echo version_compare(PHP_VERSION, '5.5.0', '>');")
if [ "$supportLatest" -eq "1" ]; then
curl -o /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar \