summarylogtreecommitdiffstats
path: root/deepin-tim-for-arch.install
blob: 9bfc53ff1766bf4a4d089c60b6119587440bac48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
    sed "s/\(Categories.*$\)/\1Network;/" -i /usr/share/applications/deepin.com.qq.office.desktop
}

post_upgrade() {
    new_tim_version=$(echo $1 | sed "s/-.*//")
    find /home -maxdepth 2 -name ".deepinwine" -exec sed -i "s/.*/$new_tim_version/" \{\}/Deepin-TIM/PACKAGE_VERSION \;
}

pre_remove() {
    find /home -maxdepth 2 -name ".deepinwine" -exec rm -rf \{\} \;
}