This commit is contained in:
liut
2021-10-12 11:11:57 +08:00
parent ff0b4d5b12
commit 78fa827ef7
1277 changed files with 135174 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
#! /usr/bin/env bash
# Remove dev deps to reduce phar size
rm -rf composer.lock vendor/
# Generate composer.lock
composer install --no-dev
# Find SDK version
version=$(grep 'const OSS_VERSION' src/OSS/OssClient.php | grep -oE '[0-9.]+')
# Build phar
phar-composer build . aliyun-oss-php-sdk-$version.phar