-
Notifications
You must be signed in to change notification settings - Fork 14
/
md.obsidian.Obsidian.yml
232 lines (232 loc) · 9.51 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
app-id: md.obsidian.Obsidian
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
runtime: org.freedesktop.Platform
runtime-version: '24.08'
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
version: '24.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: f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed310
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.47.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.6.0/git-lfs-linux-amd64-v3.6.0.tar.gz
sha256: fff4746159aa7a7b42ef1aa30fed03b534df48a7dbe116d65296c0f0c43c594d
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.6.0/git-lfs-linux-arm64-v3.6.0.tar.gz
sha256: 9509504b3b825054c3d07af5edc1cc9c00732c6f0fd4a060f04bfbf0f1279fca
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: b343fbcdbff87f15b1986e6e15d6d4fc9a7d36066be6b7fb507087ba8f966c02
url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.9p1.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: 0e44a4c43014bd513550ec190b7c33f5f8b63d162927a1f6445ef38ea25cd2fa
url: https://github.com/cli/cli/releases/download/v2.64.0/gh_2.64.0_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: 002cbf4d1cf349c5a6bd68c7d1fec88c821be19e13c9d0cd08b1b596b5a069aa
url: https://github.com/cli/cli/releases/download/v2.64.0/gh_2.64.0_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: 8e3702b195f75412e425df46f8f3f08241b66a2b33abbd9e04eda501bfde860c
url: https://github.com/jgm/pandoc/releases/download/3.6/pandoc-3.6-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: 4377731a0c896193aeab75734fd5965c21232638fde117f30e4d591700405e0f
url: https://github.com/jgm/pandoc/releases/download/3.6/pandoc-3.6-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: 4cf9f2741e6c465ffdb7c26f38056a59e2a2544b51f7cc128ef28337eeae4d8e
url: https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-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: c827481c4ff4ea10c9dc7a4022c8de5db34a5737cb74484d62eb94a95841ab2f
url: https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-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}
- cp resources/icon.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.7.7/obsidian-1.7.7.tar.gz
sha256: e881ea06f671db2c5002f0038b73a4e4b7b78a9dbf73aa9a7d0dc54a93d3d29a
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.7.7/obsidian-1.7.7-arm64.tar.gz
sha256: 846dad889fd46030e8717fc71f3ae0e5f6cc736ec0cb3b332beaa0aaca8f641f
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.desktop
- type: file
path: md.obsidian.Obsidian.metainfo.xml
- type: file
path: obsidian.sh