mozilla-b2g/mozilla-get-url

Name: mozilla-get-url

Owner: Mozilla-B2G

Description: Find the url where a given mozilla product lives for all kinds of branches / releases / pre-releases

Created: 2013-10-07 05:59:11.0

Updated: 2017-05-27 19:51:48.0

Pushed: 2015-03-30 18:06:48.0

Homepage: null

Size: 337

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

mozilla-get-url

Find the url where a given mozilla product lives for all kinds of branches / releases / pre-releases.

Inspired by firefox-get which I initially contributed to for the b2g-support… The primary difference is mozilla-get-url is designed to handle most mozilla products up front and uses ftp rather then html scraping.

Usage
locate = require('mozilla-get-url');

options = {
*
- optional
- default: release
- examples: ['release', 'prerelease', 'tinderbox', 'try']

annels determine how builds are fetched and map to lib/channels/$CHANNEL.
t all options are available across all channels

annel: null,


- required
- examples: 'win32', 'mac', 'linux-i686', 'linux-x86_64'

: 'mac',


- optional
- default: 'latest'
- examples (release channel): '17.0', '3.6', 'latest', 'beta'
- examples (prerelease channel): 'aurora', 'nightly', 'mozilla-central'
- examples (tinderbox channel): 'mozilla-central', 'mozilla-inbound'
- examples (try channel): 'email@something.com-rev'

at type of available branches vary on the channel.

anch: '17.0',

- optional
- default: 'en-US'

ly used in the "release" channel.
st of languages: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/

nguage: 'en-US',


- optional
- default: 'firefox'
- examples: 'firefox', 'b2g'

cko product... Only tested with firefox and b2g-desktop (b2g)

oduct: 'firefox',



te(options, function(err, url) {
l; // => http url to the build

CLI Usage
t latest firefox
lla-get-url --os mac

t latest b2g-desktop from mozilla central
lla-get-url --channel tinderbox --os mac --branch mozilla-central --product b2g

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.