gecko-dev/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
Rob Lemley 27ef39e646 Bug 1615932 - Support building Thunderbird Snap packages with firefox-snap. r=jlorenzo
Changes to the firefox-snap Docker image to support building Thunderbird Snap
packages as well.
Replaced hardcoded "firefox" instances in runme.sh with $PRODUCT variable and
renamed "snapcraft.yaml.in" to "firefox.snapcraft.yaml.in".

Differential Revision: https://phabricator.services.mozilla.com/D63035

--HG--
rename : taskcluster/docker/firefox-snap/snapcraft.yaml.in => taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
extra : moz-landing-system : lando
2020-03-03 14:48:49 +00:00

89 lines
1.9 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
desktop: distribution/firefox.desktop
extensions: [gnome-3-28]
environment:
DISABLE_WAYLAND: 1
HOME: "$SNAP_USER_COMMON"
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
xdg-open:
after: [firefox]
plugin: nil
source: .
override-build: |
snapcraftctl build
set -eux
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
install -m 644 mimeapps.list $SNAPCRAFT_PART_INSTALL/usr/share/applications
update-desktop-database -v $SNAPCRAFT_PART_INSTALL/usr/share/applications
build-packages:
- desktop-file-utils
shared-mime-info:
after: [xdg-open]
plugin: nil
stage-packages:
- shared-mime-info
override-build: |
snapcraftctl build
set -eux
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/mime
update-mime-database $SNAPCRAFT_PART_INSTALL/usr/share/mime
slots:
dbus-daemon:
interface: dbus
bus: session
name: org.mozilla.firefox