-
Notifications
You must be signed in to change notification settings - Fork 2
/
flatpak.json
85 lines (85 loc) · 2.35 KB
/
flatpak.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"app-id": "supply.knack.CurveTracer",
"runtime": "org.gnome.Platform",
"runtime-version": "3.30",
"sdk": "org.gnome.Sdk",
"add-extensions": {
"org.freedesktop.Sdk.Extension.rust-stable": {
"version": "1.6"
}
},
"command": "ks-curve-tracer.wrapper",
"finish-args": [
"--socket=x11",
"--socket=wayland",
"--filesystem=home:ro",
"--filesystem=/usr/lib:ro",
"--device=all"
],
"modules": [
{
"name": "udev",
"config-opts": [ "--disable-hwdb", "--disable-logging", "--disable-gudev",
"--disable-introspection", "--disable-keymap", "--disable-mtd_probe"],
"sources": [
{
"type": "archive",
"url": "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.bz2",
"sha256": "4c7937fe5a1521316ea571188745b9a00a9fdf314228cffc53a7ba9e5968b7ab"
}
]
},
{
"name": "libusb",
"sources" : [
{
"type" : "archive",
"url" : "https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2",
"sha256" : "75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157"
}
],
"config-opts": [ "--disable-static" ],
"cleanup": [
"/lib/*.la",
"/lib/pkgconfig",
"/include"
],
"post-install": [
"install -Dm644 COPYING /app/share/licenses/libusb/COPYING"
]
},
{
"name": "curve-tracer",
"sources": [
{
"type": "git",
"url": "https://github.com/knack-supply/curve-tracer.git"
}
],
"buildsystem": "simple",
"build-commands": [
"cargo build --all --release",
"install -D -t /app/bin target/release/ks-curve-tracer target/release/ks-curve-tracer-cli"
],
"build-options": {
"build-args": ["--share=network"],
"append-path": "/usr/lib/sdk/rust-stable/bin"
}
},
{
"name": "integration",
"sources": [
{
"type": "file",
"path": "flatpak"
}
],
"buildsystem": "simple",
"build-commands": [
"install -D -t /app/bin flatpak/ks-curve-tracer.wrapper flatpak/ks-curve-tracer-cli.wrapper",
"ln -sfTr /var/run/host/usr/lib/libdwf.so /app/lib/libdwf.so",
"ln -sfTr /var/run/host/usr/lib/digilent /app/lib/digilent"
]
}
]
}