Mutiple small fixes
This commit is contained in:
parent
060fc369c2
commit
2b72f2b6ee
4 changed files with 9 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ install: sudo apt install ../*.deb -y
|
|||
|
||||
script:
|
||||
- sudo howdy help
|
||||
- sudo howdy list
|
||||
- sudo apt purge howdy -y
|
||||
|
||||
notifications:
|
||||
|
|
|
|||
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -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.
|
||||
|
|
|
|||
7
debian/postinst
vendored
7
debian/postinst
vendored
|
|
@ -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)
|
||||
|
|
|
|||
4
debian/prerm
vendored
4
debian/prerm
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue