Skip to content

Commit 7d255a7

Browse files
authoredSep 4, 2024
Merge pull request #51 from ryo-arima/develop
🤗
2 parents 9b294a2 + d0c2bed commit 7d255a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎tool/main.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ function build-rpm(){
100100
BASE_DIR=mark1-${ARCH}-${VERSION}
101101
rpmdev-setuptree
102102
echo $HOME
103+
ls -al ${HOME}
103104
pwd
104-
eval "echo \"$(cat ./tool/rpm/mark1.spec.template)\"" > /root/rpmbuild/SPECS/mark1.spec
105+
eval "echo \"$(cat ./tool/rpm/mark1.spec.template)\"" > ${HOME}/rpmbuild/SPECS/mark1.spec
105106
cd ./tool/rpm/ && \
106107
mkdir -p ${BASE_DIR} && \
107108
cp -r ../../bin ${BASE_DIR} && \
@@ -110,9 +111,9 @@ function build-rpm(){
110111
mkdir -p ${BASE_DIR}/systemd/system && \
111112
cp ../systemd/mark1.service ${BASE_DIR}/systemd/system && \
112113
tar -czvf mark1-${ARCH}-${VERSION}.tar.gz ${BASE_DIR} && \
113-
cp mark1-${ARCH}-${VERSION}.tar.gz /root/rpmbuild/SOURCES && \
114+
cp mark1-${ARCH}-${VERSION}.tar.gz ${HOME}/rpmbuild/SOURCES && \
114115
cd ../..
115-
rpmbuild --define '_build_id_links none' --define 'debug_package %{nil}' -ba /root/rpmbuild/SPECS/mark1.spec
116+
rpmbuild --define '_build_id_links none' --define 'debug_package %{nil}' -ba ${HOME}/rpmbuild/SPECS/mark1.spec
116117
}
117118

118119
function push-rpm(){

0 commit comments

Comments
 (0)