You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

#!/usr/bin/env bash
if [[ "${1}" == "-u" ]]; then
echo "Uninstalling passui"
sudo rm /usr/local/bin/passui /usr/share/applications/passui.desktop
echo "If you wish you can now manually remove the dependencies: wxpython git gnupg pass"
exit 0
elif [[ "${1}" == "-h" ]]; then
echo "Usage: $0 [-u|-h]
-h show this message
-u uninstall passui"
exit 0
fi
if [[ -f /usr/bin/apk ]]; then # PostmarketOS/Alpine
sudo apk add py3-wxpython py3-gnupg git gnupg pass
elif [[ -f /usr/bin/apt ]]; then # Mobian/Debian/Ubuntu
sudo apt install python3-wxgtk4.0 python3-gnupg git gnupg pass
elif [[ -f /usr/bin/pacman ]]; then # Arch/Manjaro
sudo pacman -S python-wxpython python-gnupg git gnupg pass
else
echo " This distribution is not supported by this installer.
manually install: wxpython python3-gnupg git gnupg pass
and then copy passui to /usr/local/bin and passui.desktop to /usr/share/applications/"
exit 1
fi
sudo cp src/main.py /usr/local/bin/passui
sudo cp -a src/pass_handler /usr/lib/python3.9/site-packages/
sudo cp -a src/pass_handler /usr/lib/python3.9/
sudo cp src/passui.desktop /usr/share/applications/
exit 0