update
This commit is contained in:
28
tms-wine-dcc.install
Normal file
28
tms-wine-dcc.install
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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 "DCC application installed to /opt/tms-wine-dcc." # 路径更新
|
||||
echo "The custom Wine binary path /opt/tms-wine-dcc/wine/bin has been added to your PATH." # 路径更新
|
||||
echo "Each user will have their own Wine prefix initialized at ~/.tms-wine-dcc on first launch." # 路径更新
|
||||
echo "You can launch it via 'dcc' or 'dcc2' commands, or from your application menu."
|
||||
echo "Please log out and log back in, or source /etc/profile to apply PATH changes."
|
||||
}
|
||||
|
||||
# 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
|
||||
echo "Note: User-specific Wine prefixes (~/.tms-wine-dcc) are NOT automatically removed." # 路径更新
|
||||
echo "Users should manually remove them if no longer needed."
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user