This commit is contained in:
zj
2025-12-14 21:49:50 +08:00
parent 8362dfa4e3
commit 5913dbf074
2 changed files with 1 additions and 1 deletions

23
tms-barco-tools.install Normal file
View File

@@ -0,0 +1,23 @@
# post_install: 在软件包安装后执行
post_install() {
echo "Updating desktop database and icon cache..."
xdg-icon-resource forceupdate --theme hicolor >/dev/null 2>&1 || true
update-desktop-database -q >/dev/null 2>&1 || true
echo "Barco tools installed to /opt/barco-tools."
echo "You can launch applications from your application menu (Barco Commander, Communicator)."
}
# post_upgrade: 在软件包升级后执行
post_upgrade() {
post_install "$1"
}
# post_remove: 在软件包删除后执行
post_remove() {
echo "Updating desktop database and icon cache after removal..."
xdg-icon-resource forceupdate --theme hicolor >/dev/null 2>&1 || true
update-desktop-database -q >/dev/null 2>&1 || true
}
# vim:set ts=2 sw=2 et: