Skip to content

Commit 73299aa

Browse files
committed
added build script for standalone build
1 parent f1a41c3 commit 73299aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

artifacts/standalone/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
build-standalone: build-standalone-linux
2+
3+
build-standalone-linux:
4+
mkdir -p ${BUILD_DIR}
5+
curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64.tar.gz && tar -zxvf spc.tgz && rm spc.tgz
6+
./spc download --with-php=8.4 --for-extensions "apcu,phar,curl,dom,fileinfo,filter,intl,mbstring,mysqlnd,openssl,tokenizer,zlib" --prefer-pre-built
7+
./spc install-pkg upx
8+
./spc build --build-micro "apcu,phar,curl,dom,fileinfo,filter,intl,mbstring,mysqlnd,openssl,tokenizer,zlib" --with-upx-pack
9+
./spc micro:combine ${BUILD_DIR}/phpmetrics.phar --output=${BUILD_DIR}/phpmetrics-linux-x86_64
10+

0 commit comments

Comments
 (0)