-
Notifications
You must be signed in to change notification settings - Fork 2
/
org.mozilla.FirefoxNightly.yaml
158 lines (137 loc) · 6.07 KB
/
org.mozilla.FirefoxNightly.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
app-id: org.mozilla.FirefoxNightly
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.mozilla.firefox.BaseApp
base-version: '24.08'
command: firefox-nightly
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
add-ld-path: .
no-autodownload: true
version: '24.08'
org.mozilla.FirefoxNightly.systemconfig:
directory: etc/firefox
no-autodownload: true
finish-args:
- --allow=devel
- --device=all
- --share=ipc
- --share=network
- --socket=pcsc
- --socket=cups
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=wayland
- --env=DICPATH=/usr/share/hunspell
- --require-version=0.11.1
- --filesystem=xdg-download
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --filesystem=xdg-run/speech-dispatcher:ro
- --persist=.mozilla
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.a11y.Bus
- --talk-name=org.gtk.vfs.*
- --system-talk-name=org.freedesktop.NetworkManager
- --own-name=org.mozilla.firefox.*
- --own-name=org.mpris.MediaPlayer2.firefox.*
- --own-name=org.mozilla.firefox_nightly.*
cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
- mkdir -p ${FLATPAK_DEST}/etc/firefox
modules:
- name: search-provider
buildsystem: simple
build-commands:
- install -Dm644 org.mozilla.firefox.search-provider.ini ${FLATPAK_DEST}/share/gnome-shell/search-providers/${FLATPAK_ID}-search-provider.ini
- install -Dm644 org.mozilla.firefox.SearchProvider.service ${FLATPAK_DEST}/share/dbus-1/services/${FLATPAK_ID}.SearchProvider.service
sources:
- type: file
path: files/org.mozilla.firefox.search-provider.ini
sha256: d7a60275693f344c3655a956d036d0ed8a375eab38df84cab3d4bc30527d056d
- type: file
path: files/org.mozilla.firefox.SearchProvider.service
sha256: b5b15369fc818ba27473250ccd95b6095be983ea7cd08ed8ac1bcbfa5fce326a
- name: desktop-file
buildsystem: simple
build-commands:
- install -Dm644 org.mozilla.firefox.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources:
- type: file
path: files/org.mozilla.firefox.desktop
sha256: 2d3c5e13a54475b7ffea190e1f3c60dc09e15d1f12fe3b274db1759b2d0b922b
- name: launch-script
buildsystem: simple
build-commands:
- install -Dm755 launch-script.sh ${FLATPAK_DEST}/bin/firefox-nightly
sources:
- type: script
dest-filename: launch-script.sh
# https://hg.mozilla.org/mozilla-central/raw-file/33f0079fba2d08c293f0a63890fa88c78e2550ec/taskcluster/docker/firefox-flatpak/launch-script.sh
commands:
- export TMPDIR=$XDG_CACHE_HOME/tmp
- exec /app/lib/firefox/firefox --name org.mozilla.FirefoxNightly --class org.mozilla.FirefoxNightly "$@"
- name: metainfo
buildsystem: simple
build-options:
env:
VERSION: 136.0a1
build-commands:
- sed -i -e "s/\$VERSION/${VERSION}/" -e "s/\$DATE/$(date '+%F')/" org.mozilla.firefox.appdata.xml.in
- install -Dm644 org.mozilla.firefox.appdata.xml.in ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
sources:
- type: file
path: files/org.mozilla.firefox.appdata.xml.in
sha256: 02ccd430c345302c0afbc1182c4d74f2b3ed5b032c8be35c1d48eab80d5a6a45
- name: icons
buildsystem: simple
build-commands:
- install -Dm644 "Fx-Browser-Nightly-icon-fullColor.svg" "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
- install -Dm644 "Fx-Browser-Nightly-icon-oneColor-white.svg" "${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg"
sources:
- type: file
path: files/Fx-Browser-Nightly-icon-fullColor.svg
sha256: 801f317d754d278f598dafd9585e1d4d922e9923f723afa591ce74e3ffe78c04
- type: file
path: files/Fx-Browser-Nightly-icon-oneColor-white.svg
sha256: 7a3bd5b48384879198e2e9019adcfcabdd0bce1e296c27db11a67fdb5d3838d0
- name: distribution
buildsystem: simple
build-commands:
- install -Dm644 distribution.ini ${FLATPAK_DEST}/lib/firefox/distribution/distribution.ini
sources:
- type: file
path: files/distribution.ini
sha256: 5734f9a472d682326c087e92b71c3970e95712f24b1e4d88722669efdb3430a8
- name: firefox-nightly
buildsystem: simple
build-commands:
- find . -name '*.py' -type f -exec sed -i -e 's,!/usr/bin/python,!/usr/bin/python3,'
-e 's,/usr/bin/env python,/usr/bin/env python3,' -s {} \;
- cp -rf . ${FLATPAK_DEST}/lib/firefox
- rm -f ${FLATPAK_DEST}/lib/firefox/firefox-config
- rm -f ${FLATPAK_DEST}/lib/firefox/update-settings.ini
sources:
- type: archive
url: https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-136.0a1.en-US.linux-x86_64.tar.xz
sha256: 2afa418c2199221ca9f138b8d0f2365e100045a0d9ef1df20cd03398fdff8fb6
only-arches: [x86_64]
- type: archive
url: https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-136.0a1.en-US.linux-aarch64.tar.xz
sha256: 433d0bfcb5d5a529a35b59051b050c3d80e989fb94d3dc84e1d854212f2422ec
only-arches: [aarch64]
# x-checker-data:
# type: rotating-url
# url: https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US
# pattern: https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-([0-9.]+)a([0-9.]+).en-US.linux-x86_64.tar.bz2
- name: languagepacks
buildsystem: simple
build-commands:
- mkdir -p /app/firefox/distribution/extensions
# https://github.com/flathub/org.mozilla.Thunderbird/blob/22e4c5bfffa1a28507a0009c3c84c4f17d69c262/org.mozilla.Thunderbird.json#L244
- for lang in langpacks/*.xpi;do export locale=$(basename -s .xpi $lang); install
-Dm644 -t /app/share/runtime/locale/${locale:9:2}/ $lang; ln -sf /app/share/runtime/locale/${locale:9:2}/$(basename
$lang) /app/firefox/distribution/extensions/$(basename $lang); done
sources:
- generated-sources.json