diff --git a/demo/meson.build b/demo/meson.build index 4b6278a..1f0b537 100644 --- a/demo/meson.build +++ b/demo/meson.build @@ -4,6 +4,7 @@ gtk_test_resources = gnome.compile_resources('gtk-test-resources', 'gtk-libfprin prefix = get_option('prefix') bindir = join_paths(prefix, get_option('bindir')) +datadir = join_paths(prefix, get_option('datadir')) executable('gtk-libfprint-test', [ 'gtk-libfprint-test.c', 'loop.c', 'loop.h', gtk_test_resources ], @@ -15,3 +16,15 @@ executable('gtk-libfprint-test', '-DPACKAGE_VERSION="' + meson.project_version() + '"' ], install: true, install_dir: bindir) + +appdata = 'org.freedesktop.libfprint.Demo.appdata.xml' +install_data(appdata, + install_dir: join_paths(datadir, 'metainfo')) + +desktop = 'org.freedesktop.libfprint.Demo.desktop' +install_data(desktop, + install_dir: join_paths(datadir, 'applications')) + +icon = 'org.freedesktop.libfprint.Demo.png' +install_data(icon, + install_dir: join_paths(datadir, 'icons')) diff --git a/demo/org.freedesktop.libfprint.Demo.appdata.xml b/demo/org.freedesktop.libfprint.Demo.appdata.xml new file mode 100644 index 0000000..4cf5767 --- /dev/null +++ b/demo/org.freedesktop.libfprint.Demo.appdata.xml @@ -0,0 +1,28 @@ + + + org.freedesktop.libfprint.Demo.desktop + Fingerprint Reader Demo + Test fingerprint readers + CC0-1.0 + LGPL-2.1+ + +

+ Fingerprint Reader Demo is a test application for the libfprint + fingerprint reader library. Its purpose is to test drivers, new and old, + in a sandbox, to make sure that the drivers and associated functions + work correctly. +

+

+ Fingerprint Reader Demo does not modify the system, or replace integration + in desktop environments. +

+
+ https://fprint.freedesktop.org + + https://git.gnome.org/browse/totem/plain/data/appdata/ss-main.png + https://git.gnome.org/browse/totem/plain/data/appdata/ss-music-playlist.png + + hadess@hadess.net + + libfprint +
diff --git a/demo/org.freedesktop.libfprint.Demo.desktop b/demo/org.freedesktop.libfprint.Demo.desktop new file mode 100644 index 0000000..3368b6e --- /dev/null +++ b/demo/org.freedesktop.libfprint.Demo.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Fingerprint Reader Demo +Comment=Test fingerprint readers +Keywords=finger;print;fingerprint;fprint;demo;driver;reader; +Exec=gtk-libfprint-test +Icon=org.freedesktop.libfprint.Demo +Terminal=false +Type=Application +Categories=GTK;GNOME;Development;System; +StartupNotify=true diff --git a/demo/org.freedesktop.libfprint.Demo.json b/demo/org.freedesktop.libfprint.Demo.json new file mode 100644 index 0000000..cbb4046 --- /dev/null +++ b/demo/org.freedesktop.libfprint.Demo.json @@ -0,0 +1,51 @@ +{ + "app-id": "org.freedesktop.libfprint.Demo", + "runtime": "org.gnome.Platform", + "runtime-version": "master", + "sdk": "org.gnome.Sdk", + "command": "gtk-libfprint-test", + "finish-args": [ + /* X11 + XShm access */ + "--share=ipc", "--socket=x11", + /* Wayland access */ + "--socket=wayland", + /* OpenGL access */ + "--device=dri", + /* USB access */ + "--device=all" + ], + "cleanup": [ "/include", "/lib/pkgconfig/" ], + "modules": [ + { + "name": "libusb", + "config-opts": [ "--disable-static", "--disable-udev" ], + "cleanup": [ + "/lib/*.la", + "/lib/pkgconfig", + "/include" + ], + "sources": [ + { + "type": "archive", + "url": "https://github.com/libusb/libusb/archive/v1.0.22.tar.gz", + "sha256": "3500f7b182750cd9ccf9be8b1df998f83df56a39ab264976bdb3307773e16f48" + } + ], + "post-install": [ + "install -Dm644 COPYING /app/share/licenses/libusb/COPYING" + ] + }, + { + "name": "libfprint", + "buildsystem": "meson", + "config-opts": [ "-Dudev_rules=false", "-Dx11-examples=false", "-Dgtk-examples=true" ], + "sources": [ + { + "type": "git", + "url": "https://gitlab.freedesktop.org/libfprint/libfprint.git", + "branch": "wip/hadess/gtk-example" + } + ] + } + ] +} diff --git a/demo/org.freedesktop.libfprint.Demo.png b/demo/org.freedesktop.libfprint.Demo.png new file mode 100644 index 0000000..b27672a Binary files /dev/null and b/demo/org.freedesktop.libfprint.Demo.png differ