Skip to content

Commit

Permalink
update build_rpm fix dkms mkkmp error
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Aug 25, 2023
1 parent d91e40e commit b1de78c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions deploy/build_deb_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@ echo "Dkms deb located at ${BUILD_DIR}/lenovolegionlinux-dkms_1.0.0_amd64.deb"
##

#BUILD DKMS RPM
cd ${REPODIR}/

#Remove DKSMS
#Readd DKSMS
sudo dkms unbuild -m lenovolegionlinux -v 1.0.0
sudo dkms remove -m lenovolegionlinux -v 1.0.0

# recreate DKMSDIR and copy files
sudo rm -rf "${DKMSDIR}" || true
sudo mkdir --verbose ${DKMSDIR}
sudo cp --recursive * ${DKMSDIR}

#Add dkms again
sudo dkms add -m lenovolegionlinux -v 1.0.0

#Build rpm file
Expand Down Expand Up @@ -80,4 +73,4 @@ cp ../python3-legion-linux_1.0.0-1_all.deb ${BUILD_DIR}/python3-legion-linux_1.0
#Convert to RPM
cd ${BUILD_DIR}
sudo alien -r -c -v ./python3-legion-linux_1.0.0-1_amd64.deb
mv ./python3-legion-linux-1.0.0-2.noarch.rpm ./python3-legion-linux-1.0.0-1.amd64.rpm
mv ./python3-legion-linux-1.0.0-2.noarch.rpm ./python3-legion-linux-1.0.0-1.amd64.rpm

0 comments on commit b1de78c

Please sign in to comment.