Skip to content

Commit

Permalink
* [fix#53361] fix linux package build
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Aug 26, 2024
1 parent 56421d8 commit 98496dc
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,25 @@ zip_server_win64:

zip_server_linux:
@mkdir -p ${QINIU_DIST_DIR}linux
@cd ${COMMAND_BIN_DIR}linux && zip -ry ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip ./demo ./${PROJECT}-server && cd ../..
@md5sum ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip.md5
@cd ${COMMAND_BIN_DIR}linux && \
zip -ry ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip ./demo ./${PROJECT}-server && \
unzip -o ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip -d ${QINIU_DIST_DIR}linux/ztf-server && \
zip -ry ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip ${QINIU_DIST_DIR}linux/ztf-server && \
rm -rf ${QINIU_DIST_DIR}linux/ztf-server && \
md5sum ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux/${PROJECT}-server.zip.md5 && \
cd ../..; \

zip_server_linux_arm64:
@mkdir -p ${QINIU_DIST_DIR}linux_arm64
@cd ${COMMAND_BIN_DIR}linux_arm64 && zip -ry ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip ./demo ./${PROJECT}-server && cd ../..
@md5sum ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip.md5
@cd ${COMMAND_BIN_DIR}linux_arm64 && \
zip -ry ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip ./demo ./${PROJECT}-server && \
unzip -o ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip -d ${QINIU_DIST_DIR}linux_arm64/ztf-server && \
zip -ry ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip ${QINIU_DIST_DIR}linux_arm64/ztf-server && \
rm -rf ${QINIU_DIST_DIR}linux_arm64/ztf-server && \
md5sum ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux_arm64/${PROJECT}-server.zip.md5 && \
cd ../..; \

zip_server_mac:
@mkdir -p ${QINIU_DIST_DIR}darwin
Expand All @@ -249,6 +259,9 @@ zip_client_linux:
@mkdir -p ${QINIU_DIST_DIR}linux && rm -rf ${QINIU_DIST_DIR}linux/${PROJECT}.zip
@cd ${CLIENT_OUT_DIR}linux && \
zip -ry ${QINIU_DIST_DIR}linux/${PROJECT}.zip ./* && \
unzip -o ${QINIU_DIST_DIR}linux/${PROJECT}.zip -d ${QINIU_DIST_DIR}linux/ztf && \
zip -ry ${QINIU_DIST_DIR}linux/${PROJECT}.zip ${QINIU_DIST_DIR}linux/ztf && \
rm -rf ${QINIU_DIST_DIR}linux/ztf && \
md5sum ${QINIU_DIST_DIR}linux/${PROJECT}.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux/${PROJECT}.zip.md5 && \
cd ../..; \
Expand All @@ -259,6 +272,9 @@ zip_client_linux_arm64:
@mkdir -p ${QINIU_DIST_DIR}linux_arm64 && rm -rf ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip
@cd ${CLIENT_OUT_DIR}linux_arm64 && \
zip -ry ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip ./* && \
unzip -o ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip -d ${QINIU_DIST_DIR}linux_arm64/ztf && \
zip -ry ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip ${QINIU_DIST_DIR}linux/ztf && \
rm -rf ${QINIU_DIST_DIR}linux_arm64/ztf && \
md5sum ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}linux_arm64/${PROJECT}.zip.md5 && \
cd ../..; \
Expand Down

0 comments on commit 98496dc

Please sign in to comment.