diff --git a/.travis.yml b/.travis.yml index 5887fa0..c4959e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ install: sudo apt install ../*.deb -y script: - sudo howdy help + - sudo howdy list - sudo apt purge howdy -y notifications: diff --git a/debian/control b/debian/control index 8384eb9..d3c5b9c 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,6 @@ Package: howdy Homepage: https://github.com/Boltgolt/howdy Architecture: all Depends: git, python3, python3-pip, python3-dev, python3-setuptools, build-essential, libpam-python, fswebcam, libopencv-dev, python-opencv, cmake -Description: Windows Helloâ„¢ style authentication for Ubuntu. +Description: Windows Hello style authentication for Ubuntu Use your built-in IR emitters and camera in combination with face recognition to prove who you are. diff --git a/debian/postinst b/debian/postinst index 104de86..ba50e14 100755 --- a/debian/postinst +++ b/debian/postinst @@ -107,13 +107,14 @@ log("Cleaning up dlib") # Remove the no longer needed git clone handleStatus(subprocess.call(["rm", "-rf", "/tmp/dlib_clone"])) +print("Temporary dlib files removed") log("Installing face_recognition") # Install face_recognition though pip -handleStatus(subprocess.call(["pip3", "install", "face_recognition", "--no-cache-dir"])) +handleStatus(subprocess.call(["pip3", "install", "face_recognition"])) -log("Copying howdy data") +log("Configuring howdy") # Manually change the camera id to the one picked for line in fileinput.input(["/lib/security/howdy/config.ini"], inplace = 1): @@ -126,10 +127,12 @@ handleStatus(subprocess.call(["chmod 600 -R /lib/security/howdy/"], shell=True)) handleStatus(subprocess.call(["chmod 755 /lib/security/howdy"], shell=True)) handleStatus(subprocess.call(["chmod 744 /lib/security/howdy/cli.py"], shell=True)) handleStatus(subprocess.call(["chmod 744 -R /lib/security/howdy/cli"], shell=True)) +print("Permissions set") # Make the CLI executable as howdy handleStatus(subprocess.call(["ln -s /lib/security/howdy/cli.py /usr/local/bin/howdy"], shell=True)) handleStatus(subprocess.call(["chmod +x /usr/local/bin/howdy"], shell=True)) +print("Installing howdy command") # Install the command autocomplete, don't error on failure # subprocess.call(["sudo cp /lib/security/howdy/autocomplete.sh /etc/bash_completion.d/howdy"], shell=True) diff --git a/debian/prerm b/debian/prerm index 28a16e0..e1600f3 100755 --- a/debian/prerm +++ b/debian/prerm @@ -8,11 +8,11 @@ import subprocess # Remove files and symlinks try: subprocess.call(["rm -rf /lib/security/howdy/"], shell=True) -except as e: +except e: pass try: subprocess.call(["rm /usr/share/bash-completion/completions/howdy"], shell=True) -except as e: +except e: pass subprocess.call(["rm /usr/bin/howdy"], shell=True)