feat: 应用商店升级到 v2 版本 (#91)

This commit is contained in:
zhengkunwang223
2023-05-18 18:25:00 +08:00
committed by GitHub
parent f29958aac0
commit a1b44954ba
525 changed files with 1807 additions and 3756 deletions
@@ -0,0 +1,16 @@
#!/bin/sh
# The latest mirror's composer version only support for PHP 7.2.5
# 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', '>');")
if [ "$supportLatest" -eq "1" ]; then
curl -o /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar \
&& chmod +x /usr/bin/composer
else
curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
&& php /tmp/composer-setup.php --install-dir=/tmp \
&& mv /tmp/composer.phar /usr/bin/composer \
&& chmod +x /usr/bin/composer \
&& rm -rf /tmp/composer-setup.php
fi