This repository has been archived by the owner on Feb 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsnapcraft.yaml
executable file
·89 lines (84 loc) · 2.29 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
name: brave
version: v0.58.10-1.dev
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.
grade: stable
confinement: strict
architectures:
- build-on: amd64
parts:
brave:
plugin: dump
source: https://github.com/brave/brave-browser/releases/download/v0.58.10/brave-browser-dev_0.58.10_amd64.deb
source-type: deb
# Correct path to icon.
override-pull: |
snapcraftctl pull
rm -rf etc/cron.daily/
rm -rf usr/bin/brave-browser-dev
chmod 4555 opt/brave.com/brave-dev/brave-sandbox
unlink opt/brave.com/brave-dev/brave-browser
sed -i 's|Icon=brave-browser|Icon=/opt/brave.com/brave-dev/product_logo_128\.png|g' usr/share/applications/brave-browser-dev.desktop
after:
- desktop-gtk3
stage-packages:
- gir1.2-gnomekeyring-1.0
- libasound2
- libgconf-2-4
- libgl1-mesa-glx
- libglu1-mesa
- libgnome-keyring0
- libcap2
- libgcrypt20
- libnotify4
- libnspr4
- libnss3
- libpulse0
- libxtst6
- libxss1
apps:
brave:
command: bin/desktop-launch $SNAP/opt/brave.com/brave-dev/brave-browser-dev
desktop: usr/share/applications/brave-browser-dev.desktop
# Correct the TMPDIR path for Chromium Framework/Electron to
# ensure libappindicator has readable resources.
environment:
TMPDIR: $XDG_RUNTIME_DIR
plugs:
- alsa
- avahi-observe
- browser-sandbox
- camera
- cups-control
- desktop
- gsettings
- home
- mount-observe
- network
- opengl
- password-manager-service
- pulseaudio
- remove-media
- screen-inhibit-control
- unity7
- upower-observe
- x11
plugs:
browser-sandbox:
interface: browser-support
allow-sandbox: true
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes