gecko-dev/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in

82 строки
1.8 KiB
YAML

name: firefox
version: @VERSION@-@BUILD_NUMBER@
summary: Mozilla Firefox web browser
description: Firefox is a powerful, extensible web browser with support for modern web application technologies.
confinement: strict
grade: stable
base: core18
apps:
firefox:
command: firefox
command-chain: [tmpdir]
desktop: distribution/firefox.desktop
extensions: [gnome-3-34]
environment:
DISABLE_WAYLAND: 1
HOME: "$SNAP_USER_COMMON"
GTK_USE_PORTAL: 1
slots:
- dbus-daemon
plugs:
- avahi-observe
- browser-sandbox
- camera
- cups-control
- gsettings
- home
- joystick
- network
- network-observe
- opengl
- pulseaudio
- removable-media
- screen-inhibit-control
- u2f-devices
- unity7
- upower-observe
plugs:
browser-sandbox:
interface: browser-support
allow-sandbox: true
parts:
firefox:
plugin: dump
source: source
stage-packages:
- libxt6
- libdbus-glib-1-2
- libasound2
- libpulse0
- libgl1-mesa-dri
- libgl1-mesa-glx
- libmirclient9
- desktop-file-utils
- ffmpeg
- libc-bin
- locales-all
- libcurl3-gnutls
prime:
- -usr/lib/*/libharfbuzz*
- -usr/lib/*/*pango*
# Find files provided by the base and platform snap and ensure they aren't
# duplicated in this snap
cleanup:
after: [firefox]
plugin: nil
build-snaps: [core18, gnome-3-34-1804]
override-prime: |
set -eux
for snap in "core18" "gnome-3-34-1804"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done
slots:
dbus-daemon:
interface: dbus
bus: session
name: org.mozilla.firefox