forked from flathub/com.visualstudio.code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.visualstudio.code.yaml
More file actions
187 lines (181 loc) · 6.76 KB
/
com.visualstudio.code.yaml
File metadata and controls
187 lines (181 loc) · 6.76 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
app-id: com.visualstudio.code
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: code
tags: [proprietary]
separate-locales: false
finish-args:
- --require-version=0.10.3
- --share=network
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --socket=ssh-auth
- --device=all
- --allow=devel
- --filesystem=host
- --env=NPM_CONFIG_GLOBALCONFIG=/app/etc/npmrc
- --env=LD_LIBRARY_PATH=/app/lib
# required to fix cursor scaling on wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
- --system-talk-name=org.freedesktop.login1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Flatpak
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=com.canonical.AppMenu.Registrar.*
add-extensions:
com.visualstudio.code.tool:
directory: tools
subdirectories: true
version: '24.08'
add-ld-path: lib
no-autodownload: true
cleanup:
- /include
- /lib/pkgconfig
- /share/gtk-doc
- '*.la'
modules:
- shared-modules/libusb/libusb.json
# Provide libsecret without gcrypt, forcing it to use the D-Bus backend
# https://github.com/flathub/org.signal.Signal/pull/756/commits/2caf105b18f906e7707f67b3cf7384a21f461564
- name: libsecret
buildsystem: meson
config-opts:
- -Dmanpage=false
- -Dcrypto=disabled
- -Dvapi=false
- -Dgtk_doc=false
- -Dintrospection=false
- -Dbash_completion=disabled
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.7.tar.xz
sha256: 6b452e4750590a2b5617adc40026f28d2f4903de15f1250e1d1c40bfd68ed55e
x-checker-data:
type: gnome
name: libsecret
stable-only: true
- name: vscode
buildsystem: simple
build-commands:
- install -D code.sh /app/bin/code
- install -Dm644 vscode_64.png /app/share/icons/hicolor/64x64/apps/com.visualstudio.code.png
- install -Dm644 vscode_128.png /app/share/icons/hicolor/128x128/apps/com.visualstudio.code.png
- install -Dm644 vscode_256.png /app/share/icons/hicolor/256x256/apps/com.visualstudio.code.png
- install -Dm644 vscode_512.png /app/share/icons/hicolor/512x512/apps/com.visualstudio.code.png
- install -Dm644 com.visualstudio.code.metainfo.xml -t /app/share/metainfo
- install -Dm644 com.visualstudio.code.desktop -t /app/share/applications
- install -Dm644 com.visualstudio.code-url-handler.desktop -t /app/share/applications
- install -Dm644 com.visualstudio.code-workspace.xml -t /app/share/mime/packages
- install -Dm644 npmrc -t /app/etc
- install -Dm644 flatpak-warning.txt -t /app/share/vscode
- install -D apply_extra -t /app/bin
- cp /usr/bin/ar /app/bin
- ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so
/app/lib
- ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libtinfo.so/app/lib/libtinfo.so.5
- mkdir /app/tools
sources:
- type: script
dest-filename: apply_extra
commands:
- ar x code.deb
- tar xf data.tar.xz
- mv usr/share/code vscode
- rm -r code.deb control.tar.* data.tar.xz debian-binary usr
- type: file
path: code.sh
- type: file
path: flatpak-warning.txt
- type: file
path: npmrc
- type: file
path: com.visualstudio.code.metainfo.xml
- type: file
path: com.visualstudio.code.desktop
- type: file
path: com.visualstudio.code-url-handler.desktop
- type: file
path: com.visualstudio.code-workspace.xml
- type: file
path: icons/vscode_64.png
- type: file
path: icons/vscode_128.png
- type: file
path: icons/vscode_256.png
- type: file
path: icons/vscode_512.png
- type: extra-data
filename: code.deb
only-arches: [x86_64]
url: https://update.code.visualstudio.com/1.102.1/linux-deb-x64/stable
sha256: da0c3893d5c3a8eb85ecfc72751f969632f1afad2a8037acee5673fa2674001d
size: 108719178
x-checker-data:
type: json
url: https://api.github.com/repos/microsoft/vscode/releases/latest
version-query: .tag_name
timestamp-query: .published_at
url-query: '"https://update.code.visualstudio.com/" + $version + "/linux-deb-x64/stable"'
is-main-source: true
- type: extra-data
filename: code.deb
only-arches: [aarch64]
url: https://update.code.visualstudio.com/1.102.1/linux-deb-arm64/stable
sha256: b89a3ad40f89eea0b354a73f93b1a5d77eacdcc04adfeebd2c8fc4365ef1b6a3
size: 100499574
x-checker-data:
type: json
url: https://api.github.com/repos/microsoft/vscode/releases/latest
version-query: .tag_name
timestamp-query: .published_at
url-query: '"https://update.code.visualstudio.com/" + $version + "/linux-deb-arm64/stable"'
- name: kerberos
subdir: src
post-install:
- install -Dm644 ../krb5.conf /app/etc/krb5.conf
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.20/krb5-1.20.tar.gz
sha256: 7e022bdd3c851830173f9faaa006a230a0e0fdad4c953e85bff4bf0da036e12f
- type: file
path: krb5.conf
- 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.1/host-spawn-x86_64
sha256: 733746ab498e07d065cbecf80bacd447eb21846d1462e8fe23fdd9d9dc977b50
dest-filename: host-spawn
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
version-query: .tag_name
timestamp-query: .published_at
url-query: '"https://github.com/1player/host-spawn/releases/download/" +
$version + "/host-spawn-x86_64"'
- type: file
url: https://github.com/1player/host-spawn/releases/download/v1.6.1/host-spawn-aarch64
sha256: 71b7744a4d0b29279523cc0f0ed1a7af5e9555510bd9e6d4685391b59faefaac
dest-filename: host-spawn
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
version-query: .tag_name
timestamp-query: .published_at
url-query: '"https://github.com/1player/host-spawn/releases/download/" +
$version + "/host-spawn-aarch64"'