You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
309 B
Bash

5 years ago
#! /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