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