-
Notifications
You must be signed in to change notification settings - Fork 14
/
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: 762569efe785082b7d1feb06995efece1a9cecce16da8503ac6fdbcbea04085b
url: https://github.com/cli/cli/releases/download/v2.65.0/gh_2.65.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: 8bcec9f3ee5c7c3700359a75da774c71221064a0ba017537795aa32ac8bbb481
url: https://github.com/cli/cli/releases/download/v2.65.0/gh_2.65.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: f11b3f21549f23e3d5b99dfacb96560c04c2f76027edb787c4d6551849acf54a
url: https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.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: eeaf4e6449794b7819de52c1ac6c55a1d4b49faa6edd3243d93013469f70ae00
url: https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.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: 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