-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcom.pojtinger.felicitas.connmapper.main.json
61 lines (61 loc) · 2.59 KB
/
com.pojtinger.felicitas.connmapper.main.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
{
"id": "{{ .AppID }}",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.node20",
"org.freedesktop.Sdk.Extension.golang"
],
"base": "org.chromium.Chromium",
"base-version": "stable",
"command": "{{ .AppID }}",
"finish-args": [
"--share=network",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--talk-name=org.freedesktop.Flatpak"
],
"modules": [
{
"name": "libpcap",
"cleanup": ["/include", "/share", "/lib/pkgconfig"],
"sources": [
{
"type": "archive",
"url": "http://www.tcpdump.org/release/libpcap-1.10.4.tar.gz",
"sha256": "ed19a0383fad72e3ad435fd239d7cd80d64916b87269550159d20e47160ebe5f",
"x-checker-data": {
"type": "anitya",
"project-id": 1702,
"url-template": "http://www.tcpdump.org/release/libpcap-$version.tar.gz"
}
}
]
},
{
"name": "{{ .AppID }}",
"buildsystem": "simple",
"build-commands": [
"git config --global --add safe.directory '*'",
"GOPROXY='https://proxy.golang.org,direct' GOFLAGS=\"-x {{ .GoFlags }}\" npm_config_offline='true' npm_config_cache=\"${PWD}/flatpak-node/npm-cache\" XDG_CACHE_HOME=\"${PWD}/flatpak-node/npm-cache\" sh -c '. /usr/lib/sdk/golang/enable.sh && . /usr/lib/sdk/node20/enable.sh && {{ .GoGenerate }}'",
"mkdir -p vendor && cp modules.txt vendor/modules.txt",
". /usr/lib/sdk/golang/enable.sh && export GOPROXY='https://proxy.golang.org,direct' GOFLAGS='-x {{ .GoFlags }}' && export CGO_LDFLAGS='-L/app/lib' && export CGO_ENABLED=0 && go build -tags 'flatpak' -mod=vendor -o out/{{ .AppID }} {{ .GoMain }}",
"install -D out/{{ .AppID }} /app/bin/{{ .AppID }}",
"for icon in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do cp {{ .GoMain }}/icon-${icon}.png out/icon-${icon}.png; done",
"desktop-file-install --dir=/app/share/applications {{ .GoMain }}/{{ .AppID }}.desktop",
"install -D -m 0644 {{ .GoMain }}/{{ .AppID }}.metainfo.xml /app/share/metainfo/{{ .AppID }}.metainfo.xml",
"for icon in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do install -D -m 0644 out/icon-${icon}.png /app/share/icons/hicolor/${icon}/apps/{{ .AppID }}.png; done"
],
"sources": [
{
"type": "dir",
"path": "{{ .SrcDir }}"
},
"generated-sources.json",
"go.mod.json"
]
}
]
}