-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmd.obsidian.Obsidian.yml
232 lines (232 loc) · 9.52 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: 1c5d545f5dc1eb51e95d2c50d98fdf88b1a36ba1fa30e9ae5d5385c6024f82ad
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.48.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.1/git-lfs-linux-amd64-v3.6.1.tar.gz
sha256: 2138d2e405a12f1a088272e06790b76699b79cb90d0317b77aafaf35de908d76
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.1/git-lfs-linux-arm64-v3.6.1.tar.gz
sha256: 1c2720ff53528fbe769633d448d830aa7b682141e3c4f6a9f26b9cf3b2548d0a
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: d77623479bec017ef8eebadfefc785bafd4658343b3eb6d3f3e26fd5e11368d5
url: https://github.com/cli/cli/releases/download/v2.67.0/gh_2.67.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: d286ed158b629cefe4732b4b6865a7e0f763164477e42b91ea4494c1bb241ae0
url: https://github.com/cli/cli/releases/download/v2.67.0/gh_2.67.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: d04c95c138202f87d6b00ac19aa3dd874c681f60a9feb3b55c74f764d6d1a17d
url: https://github.com/jgm/pandoc/releases/download/3.6.3/pandoc-3.6.3-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: 4e774cb1bdb6e56bc55b8eb79200bd9aa6a39905a04ecda7267f5149116f0881
url: https://github.com/jgm/pandoc/releases/download/3.6.3/pandoc-3.6.3-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.8.4/obsidian-1.8.4.tar.gz
sha256: 6ef9afcd5c87ae3875623dc9c447ebcb9db508c5f71361843665dd74478bc221
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.8.4/obsidian-1.8.4-arm64.tar.gz
sha256: 8d234b1996e4faf4b5fbf7bb4e86f66d4625fd094b00e128e01ef61dfa24291c
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