|
|
|
@ -10,9 +10,10 @@ elif [[ "${1}" == "-h" ]]; then
|
|
|
|
|
-u uninstall passui"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ -f /usr/bin/apk ]]; then # PostmarketOS/Alpine
|
|
|
|
|
python_version=3.9
|
|
|
|
|
if [[ -f /usr/bin/apk ]] || [[ -f /sbin/apk ]]; then # PostmarketOS/Alpine
|
|
|
|
|
sudo apk add py3-wxpython py3-gnupg git gnupg pass
|
|
|
|
|
python_version=3.10
|
|
|
|
|
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
|
|
|
|
@ -24,7 +25,6 @@ else
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
sudo cp scripts/passui /usr/local/bin/
|
|
|
|
|
sudo cp -a lib/pass_handler /usr/lib/python3.9/site-packages/
|
|
|
|
|
sudo cp -a lib/pass_handler /usr/lib/python3.9/
|
|
|
|
|
sudo cp -a src/pass_handler /usr/lib/python${python_version}/site-packages/
|
|
|
|
|
sudo cp data/org.smolnet.passui.desktop /usr/share/applications/
|
|
|
|
|
exit 0
|
|
|
|
|