From a6ff613f58b526a452bf6504f0037b729c2673ec Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 13 Apr 2026 01:04:28 +0000 Subject: [PATCH] Fix build-rpm.sh: use cp+rm instead of rsync (not available in minimal containers) --- build-rpm.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build-rpm.sh b/build-rpm.sh index 375106c..26f0ea1 100755 --- a/build-rpm.sh +++ b/build-rpm.sh @@ -28,7 +28,13 @@ echo "Creating source tarball..." VERSION="1.0.0" TMPDIR=$(mktemp -d) mkdir -p "$TMPDIR/linux-patch-api-${VERSION}" -rsync -a --exclude='target' --exclude='.git' --exclude='releases' --exclude='.github' --exclude='debian' ./ "$TMPDIR/linux-patch-api-${VERSION}/" +# Copy files excluding unwanted directories using find +cp -r . "$TMPDIR/linux-patch-api-${VERSION}/" +rm -rf "$TMPDIR/linux-patch-api-${VERSION}/target" +rm -rf "$TMPDIR/linux-patch-api-${VERSION}/.git" +rm -rf "$TMPDIR/linux-patch-api-${VERSION}/releases" +rm -rf "$TMPDIR/linux-patch-api-${VERSION}/.github" +rm -rf "$TMPDIR/linux-patch-api-${VERSION}/debian" tar -czf ~/rpmbuild/SOURCES/linux-patch-api-${VERSION}.tar.gz -C "$TMPDIR" "linux-patch-api-${VERSION}" rm -rf "$TMPDIR"