-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsnapcraft.yaml
112 lines (109 loc) · 2.5 KB
/
snapcraft.yaml
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
name: atom
adopt-info: atom
summary: A hackable text editor for the 21st Century.
description: |
Atom is a free and open source text editor that is modern,
approachable, and hackable to the core.
base: core20
grade: stable
confinement: classic
compression: lzo
architectures:
- build-on: amd64
parts:
atom:
plugin: dump
source: https://atom.io/download/deb
source-type: deb
override-build: |
DEB_API="https://atom.io/download/deb"
DEB_URL=$(curl -w "%{url_effective}\n" -I -L -s -S "${DEB_API}" -o /dev/null)
VERSION=$(echo "${DEB_URL}" | cut -d'/' -f4 | tr -d 'v')
echo $VERSION > $SNAPCRAFT_STAGE/version
snapcraftctl build
sed -i 's|Icon=atom|Icon=${SNAP}/usr/share/pixmaps/atom\.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/atom.desktop
snapcraftctl set-version "$(cat $SNAPCRAFT_STAGE/version)"
prime:
- -usr/share/atom/chrome-sandbox
build-packages:
- curl
stage-packages:
- fcitx-frontend-gtk3
- libappindicator3-1
- libasound2
- libcurl4
- libgconf-2-4
- libgtk-3-0
- libnotify4
- libnspr4
- libnss3
- libpcre3
- libpulse0
- libxss1
- libsecret-1-0
- libxtst6
- libxkbfile1
- gcc-10-base
- libapparmor1
- libblkid1
- libbsd0
- libcom-err2
- libcrypt1
- libdb5.3
- libdbus-1-3
- libexpat1
- libffi7
- libgcc-s1
- libgcrypt20
- libglib2.0-0
- libgmp10
- libgnutls30
- libgpg-error0
- libgssapi-krb5-2
- libhogweed5
- libidn2-0
- libjson-c4
- libk5crypto3
- libkeyutils1
- libkrb5-3
- libkrb5support0
- liblz4-1
- liblzma5
- libmount1
- libnettle7
- libp11-kit0
- libpcre2-8-0
- libselinux1
- libsqlite3-0
- libssl1.1
- libstdc++6
- libsystemd0
- libtasn1-6
- libudev1
- libunistring2
- libuuid1
- libwrap0
- libzstd1
- zlib1g
- libx11-xcb1
- libdrm2
- libgbm1
- libxcb-dri3-0
launcher:
plugin: dump
source: files/
override-build: |
snapcraftctl build
chmod +x $SNAPCRAFT_PART_INSTALL/bin/launcher
apps:
atom:
command-chain:
- bin/launcher
command: usr/share/atom/atom
environment:
# Fallback to XWayland if running in a Wayland session.
DISABLE_WAYLAND: 1
apm:
command-chain:
- bin/launcher
command: usr/bin/apm