Skip to content

Commit 814e79c

Browse files
committed
feat: clean up build output and update spec file for desktop database integration
1 parent 71f52e7 commit 814e79c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

building/linux/build-packages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ for debian_version in 12 13; do
3131
# Move to ../bin/debian${debian_version}
3232
outdir="${top}/../bin/debian${debian_version}"
3333
mkdir -p ${outdir}
34+
rm -f ${outdir}/udslauncher_*.deb
3435
mv ${top}/../udslauncher_*.deb ${outdir}/
3536
done
3637

@@ -74,6 +75,7 @@ for DISTRO in Fedora openSUSE; do
7475
# Move to ../bin/${distro}
7576
outdir="${top}/../bin/${DISTRO_LOWER}"
7677
mkdir -p ${outdir}
78+
rm -f ${outdir}/udslauncher-*.rpm
7779
cp ${top}/rpm-${DISTRO_LOWER}/RPMS/x86_64/udslauncher-*.rpm ${outdir}/
7880
rpm --addsign ${outdir}/udslauncher-*.rpm
7981
done

building/linux/udslauncher.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,19 @@ Launcher for UDS Broker.
2323
%prep
2424
# Nothing
2525

26+
%post
27+
/usr/bin/update-desktop-database
28+
if [ ! -d /media ]; then
29+
mkdir -m 755 /media
30+
echo "/media created for compatibility"
31+
fi
32+
2633
%build
2734
# Nothing
2835

36+
%postun
37+
/usr/bin/update-desktop-database
38+
2939
%install
3040
cp -a %{DESTDIR}/* %{buildroot}/
3141

0 commit comments

Comments
 (0)