Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions artifacts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ prepare-build:
build: prepare-build build-phar build-deb build-standalone
./vendor/bin/phpunit -c phpunit.xml.dist --group=binary && echo "Done"

clear:
rm -Rf *.buildinfo
rm -Rf bin/build
23 changes: 22 additions & 1 deletion artifacts/standalone/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build-standalone: build-standalone-linux
build-standalone: build-standalone-all

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

phpacker:
curl -fsSL -o phpacker.zip https://github.com/phpacker/phpacker/releases/download/0.6.3/linux-x64.zip
unzip phpacker.zip -d phpacker
rm phpacker.zip
chmod +x phpacker/linux-x64
mv phpacker/linux-x64 /tmp/phpacker
rm -rf phpacker
mv /tmp/phpacker ./phpacker

build-standalone-all: phpacker
./phpacker build all --php=8.4 --src=${BUILD_DIR}/phpmetrics.phar --dest=${BUILD_DIR}
mv ${BUILD_DIR}/linux/linux-arm ${BUILD_DIR}/phpmetrics-linux-arm
mv ${BUILD_DIR}/linux/linux-x64 ${BUILD_DIR}/phpmetrics-linux-x86_64
mv ${BUILD_DIR}/windows/windows-x64.exe ${BUILD_DIR}/phpmetrics-windows-x86_64.exe
mv ${BUILD_DIR}/mac/mac-x64 ${BUILD_DIR}/phpmetrics-macos-x86_64
mv ${BUILD_DIR}/mac/mac-arm ${BUILD_DIR}/phpmetrics-macos-arm64
rm -rf ${BUILD_DIR}/linux
rm -rf ${BUILD_DIR}/windows
rm -rf ${BUILD_DIR}/macos
rm -rf ${BUILD_DIR}/phpacker
rm -rf phpacker
Binary file removed releases/phpmetrics-linux-x86_64
Binary file not shown.