-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
91 lines (91 loc) · 2.52 KB
/
template.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
86
87
88
89
90
91
{
"app-id": "{{app_id}}",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command": "{{project_name}}",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--share=network",
"--filesystem=/var/lib/flatpak:ro",
"--filesystem=~/.var/app:rw",
"--filesystem=~/.local/share/flatpak:ro",
"--filesystem=~/.local/share/applications:rw",
"--filesystem=~/.local/share/icons:create"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin"
},
"modules": [
{
"name": "just",
"buildsystem": "simple",
"build-commands": [
"install -Dm0755 just /app/bin/just"
],
"sources": [
{
"type": "archive",
"strip-components": 0,
"dest-filename": "just.tar.gz",
"url": "https://github.com/casey/just/releases/download/1.35.0/just-1.35.0-x86_64-unknown-linux-musl.tar.gz",
"sha256": "c4172306e241bd175c07316156a610593fa2b687ac49418520a375605d7cead4",
"only_arches": [
"x86_64"
]
},
{
"type": "archive",
"strip-components": 0,
"dest-filename": "just.tar.gz",
"url": "https://github.com/casey/just/releases/download/1.35.0/just-1.35.0-aarch64-unknown-linux-musl.tar.gz",
"sha256": "a94c75426239fce8c1e7fdfccd20d60d987924f91ac45c843a14cd72d4d71e73",
"only_arches": [
"aarch64"
]
}
]
},
{
"name": "cosmic-icons",
"buildsystem": "simple",
"build-commands": [
"sed -i \"s|prefix := '/usr'|prefix := '/app'|\" justfile",
"just install"
],
"sources": [
{
"type": "archive",
"dest-filename": "cosmic-icons-epoch-1.0.0-alpha.1.tar.gz",
"url": "https://github.com/pop-os/cosmic-icons/archive/refs/tags/epoch-1.0.0-alpha.1.tar.gz",
"sha256": "20d1a184c0421501e7ed8761f6e6178c3e16c787373357dae1d4dc22b9109428"
}
]
},
{
"name": "{{project_name}}",
"buildsystem": "simple",
"build-options": {
"env": {
"CARGO_HOME": "/run/build/{{project_name}}/cargo"
}
},
"build-commands": [
"just flatpak-builder"
],
"sources": [
{
"type": "dir",
"path": "."
},
"cargo-sources.json"
]
}
]
}