@@ -10,11 +10,12 @@ description: |
10
10
today with our new Brave Payments system.
11
11
confinement : strict
12
12
compression : lzo
13
- base : core18
13
+ base : core22
14
14
apps :
15
15
brave :
16
- command : bin/desktop-launch $SNAP/ opt/brave.com/brave/brave-browser
16
+ command : opt/brave.com/brave/brave-browser
17
17
desktop : usr/share/applications/brave-browser.desktop
18
+ extensions : [gnome]
18
19
environment :
19
20
DISABLE_WAYLAND : 1
20
21
BRAVE_DESKTOP : brave-browser.desktop
25
26
- bluez
26
27
- camera
27
28
- cups-control
28
- - desktop
29
- - desktop-legacy
30
- - gsettings
31
29
- home
32
30
- joystick
33
31
- mount-observe
@@ -40,47 +38,20 @@ apps:
40
38
- removable-media
41
39
- screen-inhibit-control
42
40
- u2f-devices
43
- - unity7
44
41
- upower-observe
45
- - wayland
46
- - x11
47
42
slots :
48
43
- mpris
49
44
plugs :
50
45
browser-sandbox :
51
46
interface : browser-support
52
47
allow-sandbox : true
53
- gtk-3-themes :
54
- interface : content
55
- target : $SNAP/data-dir/themes
56
- default-provider : gtk-common-themes
57
- icon-themes :
58
- interface : content
59
- target : $SNAP/data-dir/icons
60
- default-provider : gtk-common-themes
61
- sound-themes :
62
- interface : content
63
- target : $SNAP/data-dir/sounds
64
- default-provider : gtk-common-themes
65
48
parts :
66
49
brave :
67
50
plugin : dump
68
51
source : https://github.com/brave/brave-browser/releases/download/v$SNAPCRAFT_PROJECT_VERSION/brave-browser_$SNAPCRAFT_PROJECT_VERSION_amd64.deb
69
- after : [desktop-gtk3, gtk-key-themes]
70
- stage-packages :
71
- - libgbm1
72
- - libgl1-mesa-glx
73
- - libgtk-3-0
74
- - libnss3
75
- - libsecret-1-0
76
- - libxss1
77
- - pulseaudio
78
- - shared-mime-info
79
- - ubuntu-settings
80
- - fonts-liberation
81
52
override-pull : |
82
53
set -eu
83
- snapcraftctl pull
54
+ craftctl default
84
55
chmod 0755 ./opt/brave.com/brave/chrome-sandbox
85
56
rm -rf etc/cron.daily/ usr/bin/brave-browser usr/bin/brave-browser-stable
86
57
sed -i 's|Icon=brave-browser|Icon=/opt/brave.com/brave/product_logo_128\.png|g' usr/share/applications/brave-browser.desktop
@@ -114,60 +85,3 @@ parts:
114
85
- -usr/share/zsh
115
86
- -var
116
87
- -opt/brave.com/brave/chrome-sandbox
117
- desktop-gtk3 :
118
- source : https://github.com/ubuntu/snapcraft-desktop-helpers.git
119
- source-subdir : gtk
120
- plugin : make
121
- make-parameters : ["FLAVOR=gtk3"]
122
- build-packages :
123
- - build-essential
124
- - libgtk-3-dev
125
- stage-packages :
126
- - libxkbcommon0
127
- - ttf-ubuntu-font-family
128
- - shared-mime-info
129
- - libgtk-3-0
130
- - libgdk-pixbuf2.0-0
131
- - libglib2.0-bin
132
- - libgtk-3-bin
133
- - unity-gtk3-module
134
- - locales-all
135
- - xdg-user-dirs
136
- - ibus-gtk3
137
- - libibus-1.0-5
138
- - fcitx-frontend-gtk3
139
- prime :
140
- - -etc/gss
141
- - -etc/presage.xml
142
- - -etc/ucf.conf
143
- - -etc/X11
144
- - -usr/lib/glib-networking
145
- - -usr/lib/systemd
146
- - -usr/share/apport
147
- - -usr/share/bash-completion
148
- - -usr/share/doc
149
- - -usr/share/doc-base
150
- - -usr/share/gettext
151
- - -usr/share/GConf
152
- - -usr/share/icons
153
- - -usr/share/lintian
154
- - -usr/share/man
155
- - -usr/share/pkgconfig
156
- - -usr/share/presage
157
- - -usr/share/upstart
158
- - -var
159
- shared-mime-info :
160
- after : [brave]
161
- plugin : nil
162
- override-pull : " "
163
- override-prime : |
164
- set -eu
165
- glib-compile-schemas usr/share/glib-2.0/schemas
166
- update-mime-database usr/share/mime
167
- gtk-key-themes :
168
- plugin : nil
169
- stage-packages :
170
- - libgtk-3-common
171
- prime :
172
- - usr/share/themes/Default/
173
- - usr/share/themes/Emacs/
0 commit comments