Skip to content

Commit 9b1f5c9

Browse files
Remove unused runtimes in dotnet services
1 parent 1d9a667 commit 9b1f5c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/deb/debian/rules

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ override_dh_auto_build: check_archives
6060
bash plugins-build.sh ${BUILD_PATH}/plugins; \
6161
bash langflow-build.sh ${BUILD_PATH}/langflow
6262

63+
find ${SERVER_PATH}/publish/ -type d -name runtimes -print0 | while IFS= read -r -d '' RUNTIMES_DIR; do \
64+
find "$$RUNTIMES_DIR" -mindepth 1 -maxdepth 1 -type d ! \( -name linux-arm64 -o -name linux-x64 \) -exec rm -rf {} \; \
65+
done
66+
6367
find ${BUILDTOOLS_PATH}/install/common -type f -exec rename -f -v "s/product([^\/]*)$$/${PRODUCT}\$$1/g" {} ';'
6468

6569
find ${BUILD_PATH}/**/publish/ \

install/rpm/SPECS/build.spec

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ bash install/common/publish-backend.sh --srcpath %{_builddir}/server
1010
bash install/common/plugins-build.sh %{_builddir}/plugins
1111
bash install/common/langflow-build.sh %{_builddir}/langflow
1212

13+
find %{_builddir}/server/publish/ -type d -name runtimes -print0 | while IFS= read -r -d '' RUNTIMES_DIR; do
14+
find "$RUNTIMES_DIR" -mindepth 1 -maxdepth 1 -type d ! \( -name linux-arm64 -o -name linux-x64 \) -exec rm -rf {} \;
15+
done
16+
1317
rename -f -v "s/product([^\/]*)$/%{product}\$1/g" install/common/*
1418

1519
rm -f config/nginx/onlyoffice-login.conf

0 commit comments

Comments
 (0)