-
Notifications
You must be signed in to change notification settings - Fork 850
/
snapcraft.yaml
140 lines (138 loc) · 3.74 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: brave
version: 1.71.57
grade: stable
architectures:
- build-on: amd64
- build-on: arm64
summary: Browse faster and safer with Brave.
description: |
The new Brave browser automatically blocks ads and trackers, making it
faster and safer than your current browser. Start supporting publishers
today with our new Brave Payments system.
confinement: strict
compression: lzo
base: core22
apps:
brave:
command: opt/brave.com/brave/brave-browser
desktop: usr/share/applications/brave.desktop
extensions:
- gnome
environment:
DISABLE_WAYLAND: 1
GTK_USE_PORTAL: 1
BRAVE_SNAP: 1
BRAVE_DESKTOP: brave.desktop
BRAVE_CONFIG_HOME: $SNAP_USER_COMMON
MAN_TEST_DISABLE_SYSTEM_CONFIG: 1
MANPATH: $SNAP/usr/share/man
GROFF_FONT_PATH: $SNAP/usr/share/groff/current/font
GROFF_TMAC_PATH: $SNAP/usr/share/groff/current/tmac
plugs:
- audio-playback
- audio-record
- bluez
- camera
- cups-control
- hardware-observe
- home
- joystick
- mount-observe
- network
- network-bind
- network-manager
- opengl
- password-manager-service
- pulseaudio
- raw-usb
- removable-media
- screen-inhibit-control
- system-packages-doc
- u2f-devices
- unity7
- upower-observe
slots:
- mpris
plugs:
browser-sandbox:
interface: browser-support
allow-sandbox: true
slots:
mpris:
interface: mpris
name: brave
parts:
brave:
plugin: dump
source: https://github.com/brave/brave-browser/releases/download/v$SNAPCRAFT_PROJECT_VERSION/brave-browser_$SNAPCRAFT_PROJECT_VERSION_$SNAPCRAFT_TARGET_ARCH.deb
override-pull: |
set -eu
craftctl default
chmod 4555 ./opt/brave.com/brave/chrome-sandbox
rm -rf etc/cron.daily/ usr/bin/brave-browser usr/bin/brave-browser-stable
sed -i 's|Icon=brave-browser|Icon=/opt/brave.com/brave/product_logo_128\.png|g' usr/share/applications/brave-browser.desktop
mv usr/share/applications/brave-browser.desktop usr/share/applications/brave.desktop
prime:
- -etc/gss
- -etc/init.d
- -etc/sensors.d
- -etc/ucf.conf
- -etc/xdg
- -usr/include
- -usr/lib/tmpfiles.d
- -usr/share/apport
- -usr/share/bash-completion
- -usr/share/bug
- -usr/share/doc
- -usr/share/doc-base
- -usr/share/gettext
- -usr/share/gnome-control-center
- -usr/share/GConf
- -usr/share/icons
- -usr/share/lintian
- -usr/share/pam-configs
- -usr/share/pkgconfig
- -usr/share/polkit-1
- -usr/share/session-migration
- -usr/share/sounds
- -usr/share/ubuntu
- -usr/share/ubuntu-wayland
- -usr/share/upstart
- -usr/share/zsh
- -var
organize:
usr/share/man/man1/brave-browser.1.gz: usr/share/man/man1/brave.1.gz
# Create a symlink xdg-email -> xdg-open, as the latter is perfectly able to
# handle mailto: URLs (see https://launchpad.net/bugs/1849774).
# xdg-open is a wrapper provided by the core snap.
xdg-email:
plugin: nil
override-pull: ""
override-prime: |
set -eux
mkdir -p usr/bin
cp /snap/core22/current/usr/bin/xdg-open usr/bin
cd usr/bin
ln -s xdg-open xdg-email
manpage:
plugin: nil
stage-packages:
- groff-base
- libgdbm6
- libpipeline1
- man-db
prime:
- -etc
- -usr/lib/tmpfiles.d
- -usr/lib/mime
- -usr/lib/groff
- -usr/share/bug
- -usr/share/calendar
- -usr/share/doc
- -usr/share/doc-base
- -usr/share/lintian
- -usr/share/man
- -usr/share/man-db
- -var
organize:
usr/lib/man-db: usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR