mozilla / morgothv1

Service that helps developers manage the deployment pipeline for System Add-ons.
Mozilla Public License 2.0
0 stars 8 forks source link

Store a list of built-in system addons for all releases #40

Open rehandalal opened 7 years ago

rehandalal commented 7 years ago

We need to get a list of built-in system addons with their versions for all releases of Firefox.

We will need to:

rehandalal commented 7 years ago

mshal came up with this script to parse the build package zip file:

    #! /bin/bash

    if [ $# -lt 1 ]; then
            echo "Usage: $0 package.tar.bz2" 1>&2
            exit 1
    fi

    xpis=`tar -tf $1 | grep '\.xpi'`
    tar -xf $1 $xpis
    for i in $xpis; do
            echo -n "$i: "
            unzip -c $i install.rdf 2>/dev/null | grep em:version | sed 's/<[^>]*>//g'
    done 

Usage:

$ wget https://queue.taskcluster.net/v1/task/AsU2E9KWRce1KL8WL_trvw/artifacts/public%2Fbuild%2Ffirefox-52.0a1.en-US.linux-x86_64.tar.bz2
$ ./check.sh public%2Fbuild%2Ffirefox-52.0a1.en-US.linux-x86_64.tar.bz2
./firefox/browser/features/e10srollout@mozilla.org.xpi:     1.3
./firefox/browser/features/webcompat@mozilla.org.xpi:     1.0
./firefox/browser/features/firefox@getpocket.com.xpi:     1.0.5
./firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi:     50.0