Make installer compatible with postmarketos

main
Micke Nordin 3 years ago
parent 58ab46c0ab
commit e63f95ee4f

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

Loading…
Cancel
Save