mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 05:52:43 +08:00
14 lines
309 B
Bash
14 lines
309 B
Bash
#! /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
|