Bug 1436457 - Add a group policy file to disable app updates, as those are handled by snapd. r=jlorenzo,mkaply
authorOlivier Tilloy <olivier@tilloy.net>
Tue, 09 Apr 2019 12:40:32 +0000
changeset 468550 3b8444793f558bd769d35515f4c0cc8f3ba52370
parent 468549 a024c4370f280ba0222b2f358f3c71e96d7f4b62
child 468551 1839a68aea956a9c69f305f1c6b493a20e72a2d7
push id35843
push usernbeleuzu@mozilla.com
push dateTue, 09 Apr 2019 22:08:13 +0000
treeherdermozilla-central@a31032a16330 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlorenzo, mkaply
bugs1436457
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1436457 - Add a group policy file to disable app updates, as those are handled by snapd. r=jlorenzo,mkaply Differential Revision: https://phabricator.services.mozilla.com/D26281
taskcluster/docker/firefox-snap/policies.json
taskcluster/docker/firefox-snap/runme.sh
new file mode 100644
--- /dev/null
+++ b/taskcluster/docker/firefox-snap/policies.json
@@ -0,0 +1,5 @@
+{
+  "policies": {
+    "DisableAppUpdate": true
+  }
+}
--- a/taskcluster/docker/firefox-snap/runme.sh
+++ b/taskcluster/docker/firefox-snap/runme.sh
@@ -32,16 +32,19 @@ tar -C "$SOURCE_DEST" -xf "${WORKSPACE}/
 # Get Ubuntu configuration
 PARTNER_CONFIG_DIR="$WORKSPACE/partner_config"
 git clone https://github.com/mozilla-partners/canonical.git "$PARTNER_CONFIG_DIR"
 
 DISTRIBUTION_DIR="$SOURCE_DEST/distribution"
 mv "$PARTNER_CONFIG_DIR/desktop/ubuntu/distribution" "$DISTRIBUTION_DIR"
 cp -v "$SCRIPT_DIRECTORY/firefox.desktop" "$DISTRIBUTION_DIR"
 
+# Add a group policy file to disable app updates, as those are handled by snapd
+cp -v "$SCRIPT_DIRECTORY/policies.json" "$DISTRIBUTION_DIR"
+
 # Use list of locales to fetch L10N XPIs
 $CURL -o "${WORKSPACE}/l10n_changesets.json" "$L10N_CHANGESETS"
 locales=$(python3 "$SCRIPT_DIRECTORY/extract_locales_from_l10n_json.py" "${WORKSPACE}/l10n_changesets.json")
 
 mkdir -p "$DISTRIBUTION_DIR/extensions"
 for locale in $locales; do
     $CURL -o "$SOURCE_DEST/distribution/extensions/langpack-${locale}@firefox.mozilla.org.xpi" \
         "$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi"