-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathio.typora.Typora.json
107 lines (107 loc) · 4.25 KB
/
io.typora.Typora.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"id": "io.typora.Typora",
"command": "typora",
"separate-locales": false,
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"finish-args": [
"--device=dri",
"--filesystem=host",
"--share=ipc",
"--share=network",
"--socket=pulseaudio",
"--socket=x11",
"--socket=wayland",
"--talk-name=com.canonical.AppMenu.Registrar"
],
"modules": [
{
"name": "pandoc",
"buildsystem": "simple",
"build-commands": [
"install -Dm755 bin/pandoc ${FLATPAK_DEST}/bin/pandoc"
],
"sources": [
{
"type": "archive",
"only-arches": [
"x86_64"
],
"url": "https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-linux-amd64.tar.gz",
"sha256": "f11b3f21549f23e3d5b99dfacb96560c04c2f76027edb787c4d6551849acf54a",
"x-checker-data": {
"type": "json",
"url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
"version-query": ".tag_name",
"url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-amd64.tar.gz\") | .browser_download_url"
}
},
{
"type": "archive",
"only-arches": [
"aarch64"
],
"url": "https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-linux-arm64.tar.gz",
"sha256": "eeaf4e6449794b7819de52c1ac6c55a1d4b49faa6edd3243d93013469f70ae00",
"x-checker-data": {
"type": "json",
"url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
"version-query": ".tag_name",
"url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-arm64.tar.gz\") | .browser_download_url"
}
}
]
},
{
"name": "typora",
"buildsystem": "simple",
"build-commands": [
"mv Typora-linux-* ${FLATPAK_DEST}/typora",
"install -Dm755 typora ${FLATPAK_DEST}/bin/typora",
"install -Dm644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
"install -Dm644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"install -Dm644 ${FLATPAK_ID}.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png"
],
"sources": [
{
"type": "archive",
"only-arches": [
"x86_64"
],
"url": "https://download.typora.io/linux/Typora-linux-x64-1.9.3.tar.gz",
"sha256": "3594e6c00a52270f6f7e32e7f4b42bce5757f9efded6be5042573d7b45cdb03d"
},
{
"type": "archive",
"only-arches": [
"aarch64"
],
"url": "https://download.typora.io/linux/Typora-linux-arm64-1.9.3.tar.gz",
"sha256": "cd1942c6cca3f9f90ff14ff7cd3ddcbd8bff757411b353b21524e5761ed88375"
},
{
"type": "script",
"dest-filename": "typora",
"commands": [
"exec zypak-wrapper /app/typora/Typora \"$@\""
]
},
{
"type": "file",
"path": "io.typora.Typora.desktop"
},
{
"type": "file",
"path": "io.typora.Typora.png"
},
{
"type": "file",
"path": "io.typora.Typora.metainfo.xml"
}
]
}
]
}