-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdev.zed.Zed.yaml
More file actions
210 lines (199 loc) · 8.03 KB
/
dev.zed.Zed.yaml
File metadata and controls
210 lines (199 loc) · 8.03 KB
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
# dev.zed.Zed.yaml
app-id: dev.zed.Zed
runtime: org.freedesktop.Sdk
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
command: zed-wrapper
separate-locales: false
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
- /man
- /share/info
- /share/man
finish-args:
- --device=dri
- --filesystem=home
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=wayland
# Enable access to Flatpak host commands (Needs linter exception: https://docs.flathub.org/docs/for-app-authors/linter#exceptions)
- --talk-name=org.freedesktop.Flatpak
# Enable access to Freedesktop Secret Service & related auth services since Zed uses Git heavily
- --talk-name=org.freedesktop.secrets
- --socket=ssh-auth
- --socket=gpg-agent
- --env=SSH_ASKPASS=/app/libexec/openssh/gnome-ssh-askpass
- --env=ZED_UPDATE_EXPLANATION="Please use flatpak to update zed"
modules:
- 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
sources:
- type: archive
sha256: 56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4
url: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz
x-checker-data:
type: anitya
project-id: 2565
stable-only: true
url-template: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz
- name: gcr
buildsystem: meson
cleanup:
- /lib/girepository-1.0
- /share/gir-1.0
- /share/doc
- /share/gtk-doc
- /share/pkgconfig
config-opts:
- -Dgtk_doc=false
- -Dintrospection=false
sources:
- type: archive
sha256: bad10f3c553a0e1854649ab59c5b2434da22ca1a54ae6138f1f53961567e1ab7
url: https://download.gnome.org/sources/gcr/3.41/gcr-3.41.2.tar.xz
- name: netcat
buildsystem: simple
build-commands:
- |
while read patch; do
echo "Applying $patch..."
patch -Np1 -i "debian/patches/$patch"
done < debian/patches/series
# Allow building with static libbsd and libmd
- sed -i 's/LIBS=/LIBS ?=/' Makefile
- make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" LIBS="-Wl,-Bstatic -lbsd -lmd -Wl,-Bdynamic -lresolv"
- install -Dm0755 nc /app/bin/nc
sources:
- type: archive
url: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/1.234-1/netcat-openbsd-debian-1.234-1.tar.gz
sha256: 54586351a3eb8b11fb95752d7efb42aabd06e7e30e7946cb6369d341e258db2f
x-checker-data:
type: anitya
project-id: 21534
stable-only: true
url-template: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/$version-1/netcat-openbsd-debian-$version-1.tar.gz
modules:
- name: libbsd
buildsystem: autotools
config-opts:
- --enable-static
- --disable-shared
sources:
- type: archive
url: https://libbsd.freedesktop.org/releases/libbsd-0.12.2.tar.xz
sha256: b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014
x-checker-data:
type: anitya
project-id: 1567
stable-only: true
url-template: https://libbsd.freedesktop.org/releases/libbsd-$version.tar.xz
modules:
- name: libmd
buildsystem: autotools
config-opts:
- --enable-static
- --disable-shared
sources:
- type: archive
url: https://libbsd.freedesktop.org/releases/libmd-1.1.0.tar.xz
sha256: 1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332
x-checker-data:
type: anitya
project-id: 15525
stable-only: true
url-template: https://libbsd.freedesktop.org/releases/libmd-$version.tar.xz
- name: zed
buildsystem: simple
build-commands:
- install -Dm 755 bin/* --target-directory ${FLATPAK_DEST}/bin
- install -Dm 755 lib/* --target-directory ${FLATPAK_DEST}/lib
- install -Dm 755 libexec/* --target-directory ${FLATPAK_DEST}/libexec
- install -Dm 644 share/applications/* --target-directory ${FLATPAK_DEST}/share/applications
- install -Dm 644 ${FLATPAK_ID}.metainfo.xml --target-directory ${FLATPAK_DEST}/share/metainfo
- install -Dm 644 share/icons/hicolor/512x512/apps/zed.png --target-directory ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps
# Rename instances of `zed` to `${FLATPAK_ID}`
- rename zed ${FLATPAK_ID} ${FLATPAK_DEST}/share/icons/hicolor/*/apps/*
# Ensure zed-wrapper is used as the Exec command in the `.desktop` file
- desktop-file-edit --set-key="Exec" --set-value="zed-wrapper %U" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
# Modify original `.desktop` file to use the correct icon name
- desktop-file-edit --set-icon="${FLATPAK_ID}" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources:
- type: archive
url: https://github.com/zed-industries/zed/releases/download/v0.233.10/zed-linux-x86_64.tar.gz
sha256: a048db4579db1e76734c6a9d9e05b07ff6e13e4512ec501c3d642a06a08c1840
only-arches:
- x86_64
x-checker-data:
type: json
url: https://api.github.com/repos/zed-industries/zed/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name=="zed-linux-x86_64.tar.gz") | .browser_download_url
is-main-source: true
- type: archive
url: https://github.com/zed-industries/zed/releases/download/v0.233.10/zed-linux-aarch64.tar.gz
sha256: f9297d259da31193212b3e9f1646fbe4a89036873180ad00e956a20c39cd56ca
only-arches:
- aarch64
x-checker-data:
type: json
url: https://api.github.com/repos/zed-industries/zed/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name=="zed-linux-aarch64.tar.gz") | .browser_download_url
is-main-source: true
- type: file
path: dev.zed.Zed.metainfo.xml
- name: host-spawn
buildsystem: simple
build-commands:
- install -Dm755 host-spawn /app/bin/host-spawn
sources:
- type: file
url: https://github.com/1player/host-spawn/releases/download/v1.6.2/host-spawn-x86_64
sha256: 077bc09a087292447ba17cfe2156a93f71bf56c4c6be8e38d3abe65c1240f34c
dest-filename: host-spawn
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test(".+x86_64$"))][0] | .browser_download_url'
- type: file
url: https://github.com/1player/host-spawn/releases/download/v1.6.2/host-spawn-aarch64
sha256: 8b30215b0b6b66c8c34a3e22d372dd39020295cd0904608bc2c5f5ecff829e5f
dest-filename: host-spawn
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test(".+aarch64$"))][0] | .browser_download_url'
- name: zed-wrapper
buildsystem: meson
config-opts:
- -Deditor_binary=/app/bin/zed
- -Deditor_title=Zed
- -Dprogram_name=zed-wrapper
- -Dfirst_run_template=README.md
- -Dsdk_update_template=sdk_update.md
- -Dflagfile_prefix=flatpak-zed
- -Ddefault_loglevel=0
sources:
- type: git
commit: d581fd9b873acbf6fb22899aa388435f6c00f61a
url: https://github.com/flathub-infra/ide-flatpak-wrapper
- type: file
path: README.md
- type: file
path: sdk_update.md