Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/resources/linux/snap/snapcraft.yaml
3520 views
1
name: @@NAME@@
2
version: '@@VERSION@@'
3
summary: Code editing. Redefined.
4
description: |
5
Visual Studio Code is a new choice of tool that combines the
6
simplicity of a code editor with what developers need for the core
7
edit-build-debug cycle.
8
9
architectures:
10
- build-on: amd64
11
run-on: @@ARCHITECTURE@@
12
13
grade: stable
14
confinement: classic
15
base: core20
16
compression: lzo
17
18
parts:
19
code:
20
plugin: dump
21
source: .
22
stage-packages:
23
- ca-certificates
24
- libasound2
25
- libatk-bridge2.0-0
26
- libatk1.0-0
27
- libatspi2.0-0
28
- libcairo2
29
- libcanberra-gtk3-module
30
- libcurl3-gnutls
31
- libcurl3-nss
32
- libcurl4
33
- libegl1
34
- libdrm2
35
- libgbm1
36
- libgl1
37
- libgles2
38
- libglib2.0-0
39
- libgtk-3-0
40
- libibus-1.0-5
41
- libnss3
42
- libpango-1.0-0
43
- libsecret-1-0
44
- libwayland-egl1
45
- libxcomposite1
46
- libxdamage1
47
- libxfixes3
48
- libxkbcommon0
49
- libxkbfile1
50
- libxrandr2
51
- libxss1
52
- locales-all
53
- packagekit-gtk3-module
54
- xdg-utils
55
prime:
56
- -usr/share/doc
57
- -usr/share/fonts
58
- -usr/share/icons
59
- -usr/share/lintian
60
- -usr/share/man
61
override-build: |
62
snapcraftctl build
63
patchelf --force-rpath --set-rpath '$ORIGIN/../../lib/x86_64-linux-gnu:$ORIGIN:/snap/core20/current/lib/x86_64-linux-gnu' $SNAPCRAFT_PART_INSTALL/usr/share/@@NAME@@/chrome_crashpad_handler
64
chmod 0755 $SNAPCRAFT_PART_INSTALL/usr/share/@@NAME@@/chrome-sandbox
65
cleanup:
66
after:
67
- code
68
plugin: nil
69
build-snaps:
70
- core20
71
override-prime: |
72
set -eux
73
for snap in "core20"; do
74
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
75
done
76
patchelf --print-rpath $SNAPCRAFT_PRIME/usr/share/@@NAME@@/chrome_crashpad_handler
77
78
79
apps:
80
@@NAME@@:
81
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
82
common-id: @@NAME@@.desktop
83
84
url-handler:
85
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
86
87