Skip to content

Commit b813a1e

Browse files
authored
Merge pull request brave#18 from kenvandine/core22
Updated to use core22 and the latest snapcraft extension
2 parents 8d8a5a9 + 09ecc93 commit b813a1e

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
@@ -11,11 +11,12 @@ description: |
1111
today with our new Brave Payments system.
1212
confinement: strict
1313
compression: lzo
14-
base: core18
14+
base: core22
1515
apps:
1616
brave:
17-
command: bin/desktop-launch $SNAP/opt/brave.com/brave/brave-browser
17+
command: opt/brave.com/brave/brave-browser
1818
desktop: usr/share/applications/brave-browser.desktop
19+
extensions: [gnome]
1920
environment:
2021
DISABLE_WAYLAND: 1
2122
BRAVE_DESKTOP: brave-browser.desktop
@@ -26,9 +27,6 @@ apps:
2627
- bluez
2728
- camera
2829
- cups-control
29-
- desktop
30-
- desktop-legacy
31-
- gsettings
3230
- home
3331
- joystick
3432
- mount-observe
@@ -41,47 +39,20 @@ apps:
4139
- removable-media
4240
- screen-inhibit-control
4341
- u2f-devices
44-
- unity7
4542
- upower-observe
46-
- wayland
47-
- x11
4843
slots:
4944
- mpris
5045
plugs:
5146
browser-sandbox:
5247
interface: browser-support
5348
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
6649
parts:
6750
brave:
6851
plugin: dump
6952
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
8253
override-pull: |
8354
set -eu
84-
snapcraftctl pull
55+
craftctl default
8556
chmod 0755 ./opt/brave.com/brave/chrome-sandbox
8657
rm -rf etc/cron.daily/ usr/bin/brave-browser usr/bin/brave-browser-stable
8758
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:
11586
- -usr/share/zsh
11687
- -var
11788
- -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

Comments
 (0)