From 71b1e6f37fb474779c09ee532c269fd59af1c574 Mon Sep 17 00:00:00 2001 From: Johnny Brown Date: Mon, 26 Jun 2023 18:22:39 -0400 Subject: [PATCH] add modified recipes for mist-cli; fix descriptions for Mist to match the application and not the command line tool --- mist/mist-cli.download.recipe | 63 ++++++++++++++++++ mist/mist-cli.install.recipe | 31 +++++++++ mist/mist-cli.munki.recipe | 121 ++++++++++++++++++++++++++++++++++ mist/mist.munki.recipe | 4 +- 4 files changed, 217 insertions(+), 2 deletions(-) create mode 100644 mist/mist-cli.download.recipe create mode 100644 mist/mist-cli.install.recipe create mode 100644 mist/mist-cli.munki.recipe diff --git a/mist/mist-cli.download.recipe b/mist/mist-cli.download.recipe new file mode 100644 index 0000000..a65110a --- /dev/null +++ b/mist/mist-cli.download.recipe @@ -0,0 +1,63 @@ + + + + + Description + Download Mist-cli, A Mac command-line tool that automatically downloads macOS Firmwares / Installers: + Identifier + com.github.zentralpro.download.mist-cli + Input + + INCLUDE_PRERELEASES + + NAME + mist-cli + + MinimumVersion + 1.0.0 + Process + + + Processor + GitHubReleasesInfoProvider + Arguments + + include_prereleases + %INCLUDE_PRERELEASES% + github_repo + ninxsoft/Mist-cli + asset_regex + ^.*\.pkg$ + + + + Processor + URLDownloader + Arguments + + filename + %NAME%-%version%.pkg + + + + Processor + EndOfCheckPhase + + + Processor + CodeSignatureVerifier + Arguments + + input_path + %pathname% + expected_authority_names + + Developer ID Installer: Nindi Gill (7K3HVCLV7Z) + Developer ID Certification Authority + Apple Root CA + + + + + + diff --git a/mist/mist-cli.install.recipe b/mist/mist-cli.install.recipe new file mode 100644 index 0000000..eb98f57 --- /dev/null +++ b/mist/mist-cli.install.recipe @@ -0,0 +1,31 @@ + + + + + Description + Downloads and installs the latest version of Mist-cli, A Mac command-line tool that automatically downloads macOS Firmwares / Installers. Mist-cli will be installed to /usr/local/bin. + Identifier + com.github.zentralpro.install.mist-cli + Input + + NAME + mist + + MinimumVersion + 1.0.0 + ParentRecipe + com.github.zentralpro.download.mist-cli + Process + + + Processor + Installer + Arguments + + pkg_path + %pathname% + + + + + \ No newline at end of file diff --git a/mist/mist-cli.munki.recipe b/mist/mist-cli.munki.recipe new file mode 100644 index 0000000..1c4f413 --- /dev/null +++ b/mist/mist-cli.munki.recipe @@ -0,0 +1,121 @@ + + + + + Description + Downloads, packages and imports to Munki the latest version of Mist-cli, A Mac command-line tool that automatically downloads macOS Firmwares / Installers + +Set the DERIVE_MIN_OS variable to a non-empty string to set the minimum_os_version via MunkiInstallsItemsCreator. This requires a minimum AutoPkg version of 2.7 please update if you're not already running it. + Identifier + com.github.zentralpro.munki.mist-cli + ParentRecipe + com.github.zentralpro.download.mist-cli + MinimumVersion + 2.7 + Input + + DERIVE_MIN_OS + YES + MUNKI_NAME + %NAME% + MUNKI_REPO_SUBDIR + apps/%NAME% + MUNKI_CATEGORY + Utilities + MUNKI_DEVELOPER + ninxsoft + DISPLAY_NAME + mist-cli + pkginfo + + catalogs + + testing + + description + A Mac command-line tool that automatically downloads macOS Firmwares / Installers. Details: https://github.com/ninxsoft/Mist-cli + display_name + %DISPLAY_NAME% + name + %MUNKI_NAME% + unattended_install + + category + %MUNKI_CATEGORY% + developer + %MUNKI_DEVELOPER% + + + Process + + + Arguments + + destination_path + %RECIPE_CACHE_DIR%/unpacked + flat_pkg_path + %pathname% + purge_destination + + + Processor + FlatPkgUnpacker + + + Arguments + + destination_path + %RECIPE_CACHE_DIR%/payload + pkg_payload_path + %RECIPE_CACHE_DIR%/unpacked/Payload + purge_destination + + + Processor + PkgPayloadUnpacker + + + Arguments + + faux_root + %RECIPE_CACHE_DIR%/payload + installs_item_paths + + /usr/local/bin/mist + + derive_minimum_os_version + %DERIVE_MIN_OS% + + Processor + MunkiInstallsItemsCreator + + + Processor + MunkiPkginfoMerger + + + Processor + MunkiImporter + Arguments + + repo_subdirectory + %MUNKI_REPO_SUBDIR% + pkg_path + %pathname% + + + + Arguments + + path_list + + %RECIPE_CACHE_DIR%/unpacked/ + %RECIPE_CACHE_DIR%/payload/ + + + Processor + PathDeleter + + + + diff --git a/mist/mist.munki.recipe b/mist/mist.munki.recipe index 92a156e..f197e71 100644 --- a/mist/mist.munki.recipe +++ b/mist/mist.munki.recipe @@ -3,7 +3,7 @@ Description - Downloads, packages and imports to Munki the latest version of Download Mist, a command-line tool that automatically generates macOS Installer Disk Images and Packages. + Downloads, packages and imports to Munki the latest version of Download Mist, a Mac utility that automatically generates macOS Installer Disk Images and Packages. Set the DERIVE_MIN_OS variable to a non-empty string to set the minimum_os_version via MunkiInstallsItemsCreator. This requires a minimum AutoPkg version of 2.7 please update if you're not already running it. Identifier @@ -33,7 +33,7 @@ Set the DERIVE_MIN_OS variable to a non-empty string to set the minimum_os_versi testing description - Download Mist, a command-line tool that automatically generates macOS Installer Disk Images and Packages.. Details: https://github.com/ninxsoft/Mist + A Mac utility that automatically downloads macOS Firmwares / Installers. Details: https://github.com/ninxsoft/Mist display_name %DISPLAY_NAME% name