summarylogtreecommitdiffstats
path: root/ExifCleaner-bin.install
blob: 2bef3d2fab66a67442553476cd4ce98db3c4717b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  _pkgname=Exifcleaner
  pkgname=exifcleaner

  # Link to the binary
  ln -sf "/opt/$_pkgname/$pkgname" "/usr/bin/$pkgname"

  # SUID chrome-sandbox for Electron 5+
  chmod 4755 "/opt/$_pkgname/chrome-sandbox" || true

  update-mime-database /usr/share/mime || true
  update-desktop-database /usr/share/applications || true
}

post_remove() {
  pkgname=exifcleaner

  # Delete the link to the binary
  rm -f "/usr/bin/$pkgname"
}