Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ESR version to Mozilla FireFox #61

Closed
j81blog opened this issue May 26, 2020 · 2 comments · Fixed by #68
Closed

Add ESR version to Mozilla FireFox #61

j81blog opened this issue May 26, 2020 · 2 comments · Fixed by #68
Labels
enhancement New feature or request

Comments

@j81blog
Copy link

j81blog commented May 26, 2020

Is your feature request related to a problem? Please describe.
The customer where I want to use this module, uses the ESR version.

Describe the solution you'd like
I would like to see that Get-MozillaFireFox also lists the ESR version.
"FIREFOX_ESR" nest to the "LATEST_FIREFOX_VERSION"

Maybe something like:

$Editions = @('LATEST_FIREFOX_VERSION', 'FIREFOX_ESR')

ForEach ($lang in $Language) {
    ForEach ($plat in $Platform) {
        ForEach ($edition in $Editions) {
            # Select the download file for the selected platform
            Switch ($plat) {
                "win64" { $file = "Firefox%20Setup%20$($firefoxVersions.$edition).exe" }
                "win32" { $file = "Firefox%20Setup%20$($firefoxVersions.$edition).exe" }
            }
            switch ($edition) {
                "LATEST_FIREFOX_VERSION" {$EditionName = "Current"}
                "FIREFOX_ESR" {$EditionName = "ESR"}
            }
            # Build object and output to the pipeline
            $PSObject = [PSCustomObject] @{
                Version      = $firefoxVersions.$edition
                Architecture = Get-Architecture -String $plat
                Language     = $lang
                Edition      = $EditionName
                Filename     = $file.Replace('%20', ' ')
                URI          = "$($res.Get.DownloadUri)$($firefoxVersions.$edition)/$($plat)/$($lang)/$($file)"
            }
            Write-Output -InputObject $PSObject
        }
    }
}

You'll get the following output with that.

Version      : 76.0.1
Architecture : x64
Language     : en-US
Edition      : Current
Filename     : Firefox Setup 76.0.1.exe
URI          : https://download-installer.cdn.mozilla.net/pub/firefox/releases/76.0.1/win64/en-US/Firefox%20Setup%2076.
               0.1.exe

Version      : 68.8.0esr
Architecture : x64
Language     : en-US
Edition      : ESR
Filename     : Firefox Setup 68.8.0esr.exe
URI          : https://download-installer.cdn.mozilla.net/pub/firefox/releases/68.8.0esr/win64/en-US/Firefox%20Setup%20
               68.8.0esr.exe

Version      : 76.0.1
Architecture : x86
Language     : en-US
Edition      : Current
Filename     : Firefox Setup 76.0.1.exe
URI          : https://download-installer.cdn.mozilla.net/pub/firefox/releases/76.0.1/win32/en-US/Firefox%20Setup%2076.
               0.1.exe

Version      : 68.8.0esr
Architecture : x86
Language     : en-US
Edition      : ESR
Filename     : Firefox Setup 68.8.0esr.exe
URI          : https://download-installer.cdn.mozilla.net/pub/firefox/releases/68.8.0esr/win32/en-US/Firefox%20Setup%20
               68.8.0esr.exe
@aaronparker
Copy link
Owner

You're deploying the ESR version in an enterprise environment instead of the current release?

@aaronparker aaronparker added this to To do in Updates and Fixes May 31, 2020
@aaronparker aaronparker added the enhancement New feature or request label Jun 3, 2020
@j81blog
Copy link
Author

j81blog commented Jun 3, 2020

For this customer this is a requirement at the moment.

@aaronparker aaronparker mentioned this issue Jun 4, 2020
Updates and Fixes automation moved this from To do to Done Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants