forked from flathub/md.obsidian.Obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
md.obsidian.Obsidian.yml
235 lines (235 loc) · 9.6 KB
/
md.obsidian.Obsidian.yml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
app-id: md.obsidian.Obsidian
default-branch: stable
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
runtime: org.freedesktop.Platform
runtime-version: '23.08'
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
version: '23.08'
directory: texlive
no-autodownload: true
sdk: org.freedesktop.Sdk
command: obsidian.sh
tags:
- proprietary
finish-args:
- --socket=x11
- --socket=pulseaudio
- --socket=ssh-auth
- --device=dri
- --filesystem=home
- --filesystem=/mnt
- --filesystem=/run/media
- --filesystem=/media
- --filesystem=xdg-run/app/com.discordapp.Discord:create
- --filesystem=xdg-run/gnupg:ro
- --filesystem=~/.local/share/fonts:ro
- --share=network
- --share=ipc
- --persist=~/.ssh
- --env=SSH_ASKPASS=/app/libexec/openssh/ssh-askpass
- --env=GH_PATH=gh
- --env=OBSIDIAN_DISABLE_GPU=0
- --env=OBSIDIAN_ENABLE_AUTOSCROLL=0
- --env=OBSIDIAN_CLEAN_CACHE=1
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons:~/.icons
- --env=PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux
cleanup:
- /bin/__pycache__
modules:
- name: git
make-args:
- INSTALL_SYMLINKS=1
- NO_PERL=YesPlease
- NO_TCLTK=YesPlease
make-install-args:
- INSTALL_SYMLINKS=1
- NO_PERL=YesPlease
- NO_TCLTK=YesPlease
post-install:
- find . -type f -name perllocal.pod -delete
sources:
- type: archive
sha256: e64d340a8e627ae22cfb8bcc651cca0b497cf1e9fdf523735544ff4a732f12bf
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.45.1.tar.xz
x-checker-data:
type: html
url: https://mirrors.edge.kernel.org/pub/software/scm/git/
version-pattern: git-([\d\.-]+).tar.xz
url-template: https://mirrors.edge.kernel.org/pub/software/scm/git/git-$version.tar.xz
- name: git-crypt
buildsystem: simple
build-options:
env:
CXXFLAGS: -DOPENSSL_API_COMPAT=0x30000000L
PREFIX: ${FLATPAK_DEST}
build-commands:
- make
- make install
sources:
- type: git
url: https://github.com/AGWA/git-crypt
tag: 0.7.0
x-checker-data:
type: git
tag-pattern: ^(\d+.\d+.\d+)$
commit: a1e6311f5622fb6b9027fc087d16062c7261280f
- git-remote-codecommit.yml
- name: git-lfs
buildsystem: simple
build-commands:
- PREFIX=${FLATPAK_DEST} ./install.sh
sources:
- type: archive
strip-components: 1
url: https://github.com/git-lfs/git-lfs/releases/download/v3.5.1/git-lfs-linux-amd64-v3.5.1.tar.gz
sha256: 6f28eb19faa7a968882dca190d92adc82493378b933958d67ceaeb9ebe4d731e
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/git-lfs/git-lfs/releases/latest
url-query: .assets[] | select(.name=="git-lfs-linux-amd64-" + $version +
".tar.gz") | .browser_download_url
version-query: .tag_name
- type: archive
strip-components: 1
url: https://github.com/git-lfs/git-lfs/releases/download/v3.5.1/git-lfs-linux-arm64-v3.5.1.tar.gz
sha256: 4f8700aacaa0fd26ae5300fb0996aed14d1fd0ce1a63eb690629c132ff5163a9
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/git-lfs/git-lfs/releases/latest
url-query: .assets[] | select(.name=="git-lfs-linux-arm64-" + $version +
".tar.gz") | .browser_download_url
version-query: .tag_name
- name: ssh-askpass
buildsystem: simple
build-commands:
- make -C contrib gnome-ssh-askpass3
- install -Dm755 contrib/gnome-ssh-askpass3 ${FLATPAK_DEST}/libexec/openssh/gnome-ssh-askpass
- ln -s gnome-ssh-askpass ${FLATPAK_DEST}/libexec/openssh/ssh-askpass
sources:
- type: archive
sha256: 490426f766d82a2763fcacd8d83ea3d70798750c7bd2aff2e57dc5660f773ffd
url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.7p1.tar.gz
x-checker-data:
type: html
url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
version-pattern: openssh-(\d+\.\d+p\d+).tar.gz
url-template: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz
- name: gh
buildsystem: simple
build-commands:
- install -Dm755 bin/gh ${FLATPAK_DEST}/bin/gh
sources:
- type: archive
sha256: d84b514b64b802c703009453c935068384162253d1288d947f9488b98fb00fbc
url: https://github.com/cli/cli/releases/download/v2.49.2/gh_2.49.2_linux_amd64.tar.gz
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/cli/cli/releases/latest
url-query: .assets[] | select(.name=="gh_" + $version + "_linux_amd64.tar.gz")
| .browser_download_url
version-query: .tag_name | sub("^v"; "")
- type: archive
sha256: 1b82c3d878291e754c21bfafc2bfb1ac06c7987752d3cb9a715adce6ecffa5c3
url: https://github.com/cli/cli/releases/download/v2.49.2/gh_2.49.2_linux_arm64.tar.gz
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/cli/cli/releases/latest
url-query: .assets[] | select(.name=="gh_" + $version + "_linux_arm64.tar.gz")
| .browser_download_url
version-query: .tag_name | sub("^v"; "")
- name: pandoc
buildsystem: simple
build-commands:
- install -d ${FLATPAK_DEST}/texlive
- install -Dm755 bin/pandoc ${FLATPAK_DEST}/bin/pandoc
sources:
- type: archive
sha256: ea3f96dde56ae1577c81184694b8576d8efec52e168ce49a6e7df1441f428289
url: https://github.com/jgm/pandoc/releases/download/3.2/pandoc-3.2-linux-amd64.tar.gz
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/jgm/pandoc/releases/latest
url-query: .assets[] | select(.name=="pandoc-" + $version + "-linux-amd64.tar.gz")
| .browser_download_url
version-query: .tag_name
- type: archive
sha256: 93d6c414e5994e254aec840be8428016a70167c835ca3227378217937bd9a01a
url: https://github.com/jgm/pandoc/releases/download/3.2/pandoc-3.2-linux-arm64.tar.gz
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/jgm/pandoc/releases/latest
url-query: .assets[] | select(.name=="pandoc-" + $version + "-linux-arm64.tar.gz")
| .browser_download_url
version-query: .tag_name
- name: ripgrep
buildsystem: simple
build-commands:
- install -Dm755 rg ${FLATPAK_DEST}/bin/rg
sources:
- type: archive
sha256: f84757b07f425fe5cf11d87df6644691c644a5cd2348a2c670894272999d3ba7
url: https://github.com/BurntSushi/ripgrep/releases/download/14.1.0/ripgrep-14.1.0-x86_64-unknown-linux-musl.tar.gz
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/BurntSushi/ripgrep/releases/latest
url-query: .assets[] | select(.name=="ripgrep-" + $version + "-x86_64-unknown-linux-musl.tar.gz")
| .browser_download_url
version-query: .tag_name
- type: archive
sha256: c8c210b99844fbf16b7a36d1c963e8351bca5ff2dd7c788f5fba4ac18ba8c60d
url: https://github.com/BurntSushi/ripgrep/releases/download/14.1.0/ripgrep-14.1.0-aarch64-unknown-linux-gnu.tar.gz
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/BurntSushi/ripgrep/releases/latest
url-query: .assets[] | select(.name=="ripgrep-" + $version + "-aarch64-unknown-linux-gnu.tar.gz")
| .browser_download_url
version-query: .tag_name
- name: obsidian
buildsystem: simple
build-commands:
- mkdir -p bin share/{applications,icons/hicolor/512x512/apps,metainfo}
- mv ${FLATPAK_ID}.png share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- mv ${FLATPAK_ID}.desktop share/applications/${FLATPAK_ID}.desktop
- mv obsidian.sh bin/obsidian.sh
- mv ${FLATPAK_ID}.metainfo.xml share/metainfo/${FLATPAK_ID}.metainfo.xml
- cp -r * ${FLATPAK_DEST}
sources:
- type: archive
url: https://github.com/obsidianmd/obsidian-releases/releases/download/v1.5.12/obsidian-1.5.12.tar.gz
sha256: 5102e58cfede6442d3b87c17f8eca55d8f96cb660ad591095f52107c8bc12def
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest
url-query: .assets[] | select(.name=="obsidian-" + $version + ".tar.gz")
| .browser_download_url
version-query: .tag_name | sub("^v"; "")
is-main-source: true
- type: archive
url: https://github.com/obsidianmd/obsidian-releases/releases/download/v1.5.12/obsidian-1.5.12-arm64.tar.gz
sha256: f5c8602c89dce9ffbc355b5acb17fa7c5f109827be8cbb78cbafe896216b162b
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest
url-query: .assets[] | select(.name=="obsidian-" + $version + "-arm64" +
".tar.gz") | .browser_download_url
version-query: .tag_name | sub("^v"; "")
- type: file
path: md.obsidian.Obsidian.png
- type: file
path: md.obsidian.Obsidian.desktop
- type: file
path: md.obsidian.Obsidian.metainfo.xml
- type: file
path: obsidian.sh