demo: Add Flatpak manifest for the demo application
This commit is contained in:
parent
29461fa910
commit
702932c69b
5 changed files with 102 additions and 0 deletions
|
@ -4,6 +4,7 @@ gtk_test_resources = gnome.compile_resources('gtk-test-resources', 'gtk-libfprin
|
||||||
|
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
bindir = join_paths(prefix, get_option('bindir'))
|
bindir = join_paths(prefix, get_option('bindir'))
|
||||||
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
|
|
||||||
executable('gtk-libfprint-test',
|
executable('gtk-libfprint-test',
|
||||||
[ 'gtk-libfprint-test.c', 'loop.c', 'loop.h', gtk_test_resources ],
|
[ 'gtk-libfprint-test.c', 'loop.c', 'loop.h', gtk_test_resources ],
|
||||||
|
@ -15,3 +16,15 @@ executable('gtk-libfprint-test',
|
||||||
'-DPACKAGE_VERSION="' + meson.project_version() + '"' ],
|
'-DPACKAGE_VERSION="' + meson.project_version() + '"' ],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: bindir)
|
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'))
|
||||||
|
|
28
demo/org.freedesktop.libfprint.Demo.appdata.xml
Normal file
28
demo/org.freedesktop.libfprint.Demo.appdata.xml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="desktop">
|
||||||
|
<id>org.freedesktop.libfprint.Demo.desktop</id>
|
||||||
|
<name>Fingerprint Reader Demo</name>
|
||||||
|
<summary>Test fingerprint readers</summary>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<project_license>LGPL-2.1+</project_license>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
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.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Fingerprint Reader Demo does not modify the system, or replace integration
|
||||||
|
in desktop environments.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<url type="homepage">https://fprint.freedesktop.org</url>
|
||||||
|
<screenshots>
|
||||||
|
<screenshot type="default" width="1024" height="576">https://git.gnome.org/browse/totem/plain/data/appdata/ss-main.png</screenshot>
|
||||||
|
<screenshot width="1024" height="576">https://git.gnome.org/browse/totem/plain/data/appdata/ss-music-playlist.png</screenshot>
|
||||||
|
</screenshots>
|
||||||
|
<updatecontact>hadess@hadess.net</updatecontact>
|
||||||
|
<!-- Incorrect, but appstream-util won't validate without it -->
|
||||||
|
<translation type="gettext">libfprint</translation>
|
||||||
|
</component>
|
10
demo/org.freedesktop.libfprint.Demo.desktop
Normal file
10
demo/org.freedesktop.libfprint.Demo.desktop
Normal file
|
@ -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
|
51
demo/org.freedesktop.libfprint.Demo.json
Normal file
51
demo/org.freedesktop.libfprint.Demo.json
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
demo/org.freedesktop.libfprint.Demo.png
Normal file
BIN
demo/org.freedesktop.libfprint.Demo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue