diff --git a/Mozilla/Firefox-Mac.download.recipe.yaml b/Mozilla/Firefox-Mac.download.recipe.yaml index 5603b75..defe6e8 100644 --- a/Mozilla/Firefox-Mac.download.recipe.yaml +++ b/Mozilla/Firefox-Mac.download.recipe.yaml @@ -34,7 +34,7 @@ Process: datetime_parsed_name: SourceReleaseDate # this is specifically for BigFix, but won't hurt other use cases: - #- Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem + - Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem - Processor: com.github.jgstew.SharedProcessors/FileHasher diff --git a/Mozilla/Firefox-Win-Install_Update.bes.mustache b/Mozilla/Firefox-Win-Install_Update.bes.mustache new file mode 100644 index 0000000..2429561 --- /dev/null +++ b/Mozilla/Firefox-Win-Install_Update.bes.mustache @@ -0,0 +1,54 @@ + + + <{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}> + {{^patch}}Install/{{/patch}}Update: {{DisplayName}} v{{version}} - Windows{{#64BitOnly}} (x64){{/64BitOnly}} +
Run Command As: System User

Download Size: {{DownloadSize}} +{{^patch}}{{#icon_base64}}

Icon:
{{/icon_base64}}{{/patch}} + ]]>
+ windows of operating system + {{#64BitOnly}} + + {{/64BitOnly}} + {{#patch}}{{#DisplayName}} + + {{/DisplayName}}{{/patch}} + = "{{version}}") of values "DisplayVersion" of keys whose(value "DisplayName" of it as string starts with "{{DisplayName}}") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries)]]> + + {{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}} + {{DisplayName}} + + {{SourceReleaseDate}} + + + + + action-ui-metadata + { {{#version}}"version":"{{version}}",{{/version}}"size":{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}{{^patch}}{{#icon_base64}},"icon":"data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}"{{/icon_base64}}{{/patch}} } + + + x-fixlet-modification-time + {{x-fixlet-modification-time}} + + BESC + + + Click + here + to deploy {{DisplayName}} v{{version}}. + + + + + +
diff --git a/Mozilla/Firefox-Win.bigfix.recipe.yaml b/Mozilla/Firefox-Win.bigfix.recipe.yaml new file mode 100644 index 0000000..4b232e1 --- /dev/null +++ b/Mozilla/Firefox-Win.bigfix.recipe.yaml @@ -0,0 +1,56 @@ +# https://download.mozilla.org/?product=firefox-latest-ssl&os=osx&lang=en-US +--- +Description: Creates an choco package for the latest version of Firefox +Identifier: com.github.jgstew.bigfix.Firefox-Win64 +Input: + NAME: "Firefox" + DisplayName: "Mozilla Firefox" + product: firefox-latest-ssl + OS: win64 + filename: FirefoxSetup.exe + # https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US + # https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US +MinimumVersion: "2.3" +ParentRecipe: com.github.jgstew.download.Firefox-Win64 +Process: + # - Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem + + # - Processor: com.github.jgstew.SharedProcessors/BigFixSetupTemplateDictionary + + - Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppendInput + + - Processor: com.github.jgstew.SharedProcessors/URLDownloaderPython + Arguments: + filename: "%NAME%-icon.png" + url: https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/200px-Firefox_logo%2C_2019.svg.png + COMPUTE_HASHES: false + + - Processor: com.github.jgstew.SharedProcessors/FileGetBase64 + + - Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppend + Arguments: + append_key: "icon_base64" + append_value: "%file_base64%" + + - Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate + Arguments: + # use UNIX style paths so this works on Windows and non-Windows: + template_file_path: ./Mozilla/Firefox-Win-Install_Update.bes.mustache + content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-InstallUpdate.bes" + + - Processor: com.github.jgstew.SharedProcessors/BESImport + + - Processor: com.github.jgstew.SharedProcessors/BigFixActioner + + # create update(patch) only content: + - Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppend + Arguments: + append_key: "patch" + append_value: true + + - Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate + Arguments: + # template_file_path: "./%VendorFolder%/%NAME%-Win-Install_Update.bes.mustache" + content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-Update.bes" + + - Processor: com.github.jgstew.SharedProcessors/BESImport