summarylogtreecommitdiffstats
path: root/.INSTALL
blob: 1c2a04b4292b6e5d805cf4c515bccf2c2d066fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
    
    # Link to the binary
    ln -sf /opt/whatsie/whatsie /usr/bin/whatsie
    update-desktop-database -q
}

post_upgrade() {
    post_install
}

post_remove() {
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
    
    # Delete the link to the binary
    rm -f /usr/bin/whatsie
    
    # Delete leftover app data
    rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/Whatsie"
    update-desktop-database -q
}