Files
addons
app_download_files
extend
hyhproject
mobile
oss
static
thinkphp
upload
vendor
5ini99
composer
oss-sdk
samples
src
tests
.coveralls.yml
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README-CN.md
README.md
autoload.php
build-phar.sh
composer.json
example.jpg
index.php
phpunit.xml
swoole
wechat
.htaccess
autoload.php
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
qlg.tsgz.moe/vendor/oss-sdk/build-phar.sh
2019-09-06 23:53:10 +08:00

14 lines
309 B
Bash
Executable File

#! /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