Skip to content

Commit 562cf19

Browse files
committed
Updated to use core22 and the latest snapcraft extension
1 parent 4bd25cf commit 562cf19

File tree

1 file changed

+4
-90
lines changed

1 file changed

+4
-90
lines changed

snapcraft.yaml

+4-90
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ description: |
1010
today with our new Brave Payments system.
1111
confinement: strict
1212
compression: lzo
13-
base: core18
13+
base: core22
1414
apps:
1515
brave:
16-
command: bin/desktop-launch $SNAP/opt/brave.com/brave/brave-browser
16+
command: opt/brave.com/brave/brave-browser
1717
desktop: usr/share/applications/brave-browser.desktop
18+
extensions: [gnome]
1819
environment:
1920
DISABLE_WAYLAND: 1
2021
BRAVE_DESKTOP: brave-browser.desktop
@@ -25,9 +26,6 @@ apps:
2526
- bluez
2627
- camera
2728
- cups-control
28-
- desktop
29-
- desktop-legacy
30-
- gsettings
3129
- home
3230
- joystick
3331
- mount-observe
@@ -40,47 +38,20 @@ apps:
4038
- removable-media
4139
- screen-inhibit-control
4240
- u2f-devices
43-
- unity7
4441
- upower-observe
45-
- wayland
46-
- x11
4742
slots:
4843
- mpris
4944
plugs:
5045
browser-sandbox:
5146
interface: browser-support
5247
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
6548
parts:
6649
brave:
6750
plugin: dump
6851
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
8152
override-pull: |
8253
set -eu
83-
snapcraftctl pull
54+
craftctl default
8455
chmod 0755 ./opt/brave.com/brave/chrome-sandbox
8556
rm -rf etc/cron.daily/ usr/bin/brave-browser usr/bin/brave-browser-stable
8657
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:
11485
- -usr/share/zsh
11586
- -var
11687
- -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

Comments
 (0)