mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
22 lines
474 B
Bash
22 lines
474 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
set -exu
|
||
|
|
__DIR__=$(
|
||
|
|
cd "$(dirname "$0")"
|
||
|
|
pwd
|
||
|
|
)
|
||
|
|
__PROJECT__=$(
|
||
|
|
cd ${__DIR__}/../
|
||
|
|
pwd
|
||
|
|
)
|
||
|
|
cd ${__PROJECT__}
|
||
|
|
|
||
|
|
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
||
|
|
|
||
|
|
chmod +x bin/spc
|
||
|
|
|
||
|
|
./bin/spc fetch --all --debug
|
||
|
|
|
||
|
|
./bin/spc list-ext
|
||
|
|
# 构建包含 bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl 扩展的 php-cli 和 micro.sfx
|
||
|
|
./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl" --build-all --cc=gcc --debug
|