0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

Made howdy-gtk debian package

This commit is contained in:
boltgolt 2020-12-03 01:19:15 +01:00
parent d154c56566
commit 2c28c94353
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
14 changed files with 67 additions and 4 deletions

2
debian/control vendored
View file

@ -10,7 +10,7 @@ Package: howdy
Homepage: https://github.com/boltgolt/howdy
Architecture: all
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, libopencv-dev, cmake
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, streamer
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, streamer, howdy-gtk
Suggests: nvidia-cuda-dev (>= 7.5)
Description: Howdy: Windows Hello style authentication for Linux.
Use your built-in IR emitters and camera in combination with face recognition

View file

@ -0,0 +1,5 @@
howdy-gtk (0.0.1) xenial; urgency=medium
* Initial testing release with sticky authentication ui
-- boltgolt <boltgolt@gmail.com> Thu, 03 Dec 2020 00:08:49 +0200

1
howdy-gtk/debian/compat Normal file
View file

@ -0,0 +1 @@
10

13
howdy-gtk/debian/control Normal file
View file

@ -0,0 +1,13 @@
Source: howdy-gtk
Section: misc
Priority: optional
Standards-Version: 3.9.7
Build-Depends: python, dh-python, devscripts, dh-make, debhelper, fakeroot
Maintainer: boltgolt <boltgolt@gmail.com>
Vcs-Git: https://github.com/boltgolt/howdy
Package: howdy-gtk
Homepage: https://github.com/boltgolt/howdy
Architecture: all
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python-gtk2, cmake
Description: Optional UI package for Howdy, written in Gtk

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 boltgolt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1 @@
/usr/lib/howdy-gtk/authsticky.py /usr/bin/howdy-gtk-auth

View file

@ -0,0 +1,2 @@
# W: Don't require ugly linebreaks in last 5 chars
howdy: debian-changelog-line-too-long

1
howdy-gtk/debian/install Normal file
View file

@ -0,0 +1 @@
src/. /usr/lib/howdy-gtk

8
howdy-gtk/debian/rules Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/make -f
DH_VERBOSE = 1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
%:
dh $@

View file

@ -0,0 +1 @@
3.0 (native)

View file

@ -0,0 +1,8 @@
tar-ignore = ".git"
tar-ignore = ".gitignore"
tar-ignore = ".github"
tar-ignore = "README.md"
tar-ignore = ".travis.yml"
tar-ignore = "fedora"
tar-ignore = "opensuse"
tar-ignore = "archlinux"

View file

@ -1,3 +1,5 @@
#!/usr/bin/env python3
# Shows a floating window when authenticating
import cairo
import gi
@ -77,7 +79,7 @@ class StickyWindow(gtk.Window):
dir = os.path.dirname(os.path.abspath(__file__))
image_surface = cairo.ImageSurface.create_from_png(dir + "/logo.png")
image_surface = cairo.ImageSurface.create_from_png("/usr/lib/howdy-gtk/logo.png")
ratio = float(windowHeight - 20) / float(image_surface.get_height())
ctx.translate(15, 10)

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -115,7 +115,7 @@ pose_predictor = None
face_encoder = None
# Start the auth ui
gtk_proc = subprocess.Popen(["python3", "-u", "../howdy-gtk/authsticky.py"], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
gtk_proc = subprocess.Popen(["howdy-gtk-auth"], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
# Write to the stdin to redraw ui
send_to_ui("M", "Starting up...")
@ -202,7 +202,7 @@ while True:
frames += 1
# Form a string to let the user know we're real busy
ui_subtext = "Scanned " + str(valid_frames) + " frames"
ui_subtext = "Scanned " + str(valid_frames - dark_tries) + " frames"
if (dark_tries > 1):
ui_subtext += " (skipped " + str(dark_tries) + " dark frames)"
# Show it in the ui as subtext