Skip to content

Commit 17731e1

Browse files
authored
Merge pull request #530 from phpmetrics/binary-phpacker
2 parents 336ce35 + cd805a2 commit 17731e1

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

artifacts/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ prepare-build:
1616
build: prepare-build build-phar build-deb build-standalone
1717
./vendor/bin/phpunit -c phpunit.xml.dist --group=binary && echo "Done"
1818

19+
clear:
20+
rm -Rf *.buildinfo
21+
rm -Rf bin/build

artifacts/standalone/Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build-standalone: build-standalone-linux
1+
build-standalone: build-standalone-all
22

33
build-standalone-linux:
44
mkdir -p ${BUILD_DIR}
@@ -9,3 +9,24 @@ build-standalone-linux:
99
./spc build --build-micro "apcu,phar,curl,dom,fileinfo,filter,intl,mbstring,mysqlnd,openssl,tokenizer,zlib" --with-upx-pack
1010
./spc micro:combine ${BUILD_DIR}/phpmetrics.phar --output=${BUILD_DIR}/phpmetrics-linux-x86_64
1111

12+
phpacker:
13+
curl -fsSL -o phpacker.zip https://github.com/phpacker/phpacker/releases/download/0.6.3/linux-x64.zip
14+
unzip phpacker.zip -d phpacker
15+
rm phpacker.zip
16+
chmod +x phpacker/linux-x64
17+
mv phpacker/linux-x64 /tmp/phpacker
18+
rm -rf phpacker
19+
mv /tmp/phpacker ./phpacker
20+
21+
build-standalone-all: phpacker
22+
./phpacker build all --php=8.4 --src=${BUILD_DIR}/phpmetrics.phar --dest=${BUILD_DIR}
23+
mv ${BUILD_DIR}/linux/linux-arm ${BUILD_DIR}/phpmetrics-linux-arm
24+
mv ${BUILD_DIR}/linux/linux-x64 ${BUILD_DIR}/phpmetrics-linux-x86_64
25+
mv ${BUILD_DIR}/windows/windows-x64.exe ${BUILD_DIR}/phpmetrics-windows-x86_64.exe
26+
mv ${BUILD_DIR}/mac/mac-x64 ${BUILD_DIR}/phpmetrics-macos-x86_64
27+
mv ${BUILD_DIR}/mac/mac-arm ${BUILD_DIR}/phpmetrics-macos-arm64
28+
rm -rf ${BUILD_DIR}/linux
29+
rm -rf ${BUILD_DIR}/windows
30+
rm -rf ${BUILD_DIR}/macos
31+
rm -rf ${BUILD_DIR}/phpacker
32+
rm -rf phpacker

releases/phpmetrics-linux-x86_64

-31.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)