1
0
mirror of https://github.com/elegaanz/mobydick synced 2025-02-17 03:40:46 +01:00
Floréal Toumikian 72c28b2518 Enhancement: better packaging scripts
- build.sh: will build for release
- ./install.sh:
  - default $PREFIX set to /usr/local to avoid installing in /
  - use install over cp
- ./uninstall.sh:
  - remove installed files (leave directory structure though)
  - default $PREFIX set to /usr/local
2020-08-27 11:57:41 +02:00

14 lines
334 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$PREFIX" ]; then
PREFIX=/usr/local
fi
sudo rm -v $PREFIX/bin/xyz.gelez.mobydick
sudo rm -v $PREFIX/share/appdata/$(ls *.appdata.xml)
sudo rm -v $PREFIX/share/applications/$(ls *.desktop)
for s in "16" "24" "32" "48" "64" "128"; do
sudo rm -v $PREFIX/share/icons/hicolor/${s}x${s}/mobydick.svg
done