diff --git a/lib/utils.js b/lib/utils.js index f34a146..6dcb97c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -25,6 +25,9 @@ function normalizeBinary (binaryPath, platform, arch) { platform = platform || os.platform(); arch = arch || os.arch(); binaryPath = binaryPath || process.env.JPM_FIREFOX_BINARY || "firefox"; + if (binaryPath === "firefoxdeveloperedition") { + binaryPath = "deved"; + } arch = /64/.test(arch) ? "(64)" : ""; platform = /darwin/i.test(platform) ? "osx" : @@ -37,7 +40,7 @@ function normalizeBinary (binaryPath, platform, arch) { if (platform === "osx") { var result = null; var channelNames = [ - "firefox", "firefoxdeveloperedition", "beta", "nightly", "aurora" + "firefox", "deved", "beta", "nightly", "aurora" ]; if (channelNames.indexOf(binaryPath) !== -1) { @@ -111,7 +114,7 @@ function normalizeBinary (binaryPath, platform, arch) { normalizeBinary.paths = { "firefox on osx": "/Applications/Firefox.app/Contents/MacOS/firefox-bin", "beta on osx": "/Applications/FirefoxBeta.app/Contents/MacOS/firefox-bin", - "firefoxdeveloperedition on osx": "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin", + "deved on osx": "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin", "aurora on osx": "/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin", "nightly on osx": "/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin", }; @@ -120,11 +123,12 @@ normalizeBinary.appNames = { "firefox on linux": "firefox", "beta on linux": "firefox-beta", "aurora on linux": "firefox-aurora", + "deved on linux": "firefox-developer-edition", "nightly on linux": "firefox-nightly", "firefox on windows": "Mozilla Firefox", // the default path in the beta installer is the same as the stable one "beta on windows": "Mozilla Firefox", - "firefoxdeveloperedition on windows": "Firefox Developer Edition", + "deved on windows": "Firefox Developer Edition", "aurora on windows": "Aurora", "nightly on windows": "Nightly" }; diff --git a/test/run/test.utils.js b/test/run/test.utils.js index 1565192..46710e3 100644 --- a/test/run/test.utils.js +++ b/test/run/test.utils.js @@ -201,6 +201,9 @@ describe("lib/utils", function () { [["aurora", "linux", "x86"], "/usr/bin/firefox-aurora"], [["aurora", "linux", "x86_64"], "/usr/bin/firefox-aurora"], + [["deved", "linux", "x86"], "/usr/bin/firefox-developer-edition"], + [["deved", "linux", "x86_64"], "/usr/bin/firefox-developer-edition"], + [["nightly", "linux", "x86_64"], "/usr/bin/firefox-nightly"], [["nightly", "linux", "x86_64"], "/usr/bin/firefox-nightly"], ].map(function(fixture) { @@ -223,6 +226,8 @@ describe("lib/utils", function () { [["beta", "darwin", "x86"], "/Applications/FirefoxBeta.app/Contents/MacOS/firefox-bin"], [["beta", "darwin", "x86_64"], "/Applications/FirefoxBeta.app/Contents/MacOS/firefox-bin"], + [["deved", "darwin", "x86"], "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin"], + [["deved", "darwin", "x86_64"], "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin"], [["firefoxdeveloperedition", "darwin", "x86"], "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin"], [["firefoxdeveloperedition", "darwin", "x86_64"], "/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin"],