This commit is contained in:
zj
2025-12-15 05:13:48 +08:00
parent 5debc568de
commit 50f456a779
2 changed files with 3 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
pkgname=tms-bbt pkgname=tms-bbt
pkgver=1.0 pkgver=1.0
pkgrel=1 pkgrel=2
pkgdesc="SmartTMS application suite for managing cinema devices." pkgdesc="SmartTMS application suite for managing cinema devices."
arch=('x86_64') arch=('x86_64')
url="https://your.company.com/smarttms" url="https://your.company.com/smarttms"

View File

@@ -36,12 +36,9 @@ post_remove() {
echo "Updating desktop database after removal..." echo "Updating desktop database after removal..."
update-desktop-database /usr/share/applications >/dev/null 2>&1 || : update-desktop-database /usr/share/applications >/dev/null 2>&1 || :
# 可选:如果 /home/smart/.tms3 目录为空,则删除它。
# 这与 RPM 的行为一致RPM 只会删除它跟踪的文件。
# 如果用户在该目录中创建了文件RPM 不会删除该目录,此脚本也不会。
local _app_base_dir="/home/smart/.tms3" local _app_base_dir="/home/smart/.tms3"
if [ -d "${_app_base_dir}" ] && [ -z "$(ls -A "${_app_base_dir}")" ]; then if [ -d "${_app_base_dir}" ]; then
rmdir "${_app_base_dir}" >/dev/null 2>&1 || : rm -rf "${_app_base_dir}" >/dev/null 2>&1 || :
fi fi
echo "SmartTMS application has been removed." echo "SmartTMS application has been removed."