mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
25 lines
437 B
Bash
25 lines
437 B
Bash
#!/bin/bash
|
|
|
|
set -exu
|
|
__DIR__=$(
|
|
cd "$(dirname "$0")"
|
|
pwd
|
|
)
|
|
__PROJECT__=$(
|
|
cd ${__DIR__}/../../../
|
|
pwd
|
|
)
|
|
cd ${__PROJECT__}
|
|
|
|
export PATH=${__PROJECT__}/bin/runtime:$PATH
|
|
|
|
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
|
|
|
chmod +x bin/spc
|
|
|
|
./bin/spc fetch --all --debug
|
|
|
|
./bin/spc list-ext
|
|
|
|
./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo,pdo_sqlite,ftp,curl" --cc=clang --cxx=clang++ --debug
|