From e63f95ee4f49c8307b074fc3e5e1c2a153d86505 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 15 Mar 2022 14:51:58 +0100 Subject: [PATCH] Make installer compatible with postmarketos --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2665b18..16414ab 100755 --- a/install.sh +++ b/install.sh @@ -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