Skip to content

Commit

Permalink
chore: Allow to define binary path for RPM build (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
  • Loading branch information
SergK committed Sep 4, 2024
1 parent a6dc580 commit 629044f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/templates/applications/rpm-package/Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CURRENT_DIR=$(shell pwd)
DIST_DIR=${CURRENT_DIR}/dist
BIN_DIR=${CURRENT_DIR}/target
BINNARY=${CURRENT_DIR}/target/*.jar

NAME ?= {{.Name}}
ARCH ?= x86_64
Expand All @@ -17,7 +17,7 @@ rpm-lint:
rpm-prepare:
mkdir -p rpmbuild/SOURCES
mkdir -p ${DIST_DIR}/$(NAME)-$(VERSION)
cp -r ${BIN_DIR}/* ${DIST_DIR}/$(NAME)-$(VERSION)
cp -r ${BINNARY} ${DIST_DIR}/$(NAME)-$(VERSION)
cp -r ${NAME}.service rpmbuild/SOURCES/$(NAME).service
tar -czvf rpmbuild/SOURCES/$(NAME)-$(VERSION).tar.gz -C ${DIST_DIR} $(NAME)-$(VERSION)

Expand Down

0 comments on commit 629044f

Please sign in to comment.