From 416ff84aab5917eafde15388bda56359fe631259 Mon Sep 17 00:00:00 2001 From: "Kevin M. Cox" Date: Thu, 27 Jun 2024 14:54:11 -0500 Subject: [PATCH 1/2] Update GitHubCLI.munki.recipe Adds the Munki `supported_architectures` array. --- GitHub/GitHubCLI.munki.recipe | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GitHub/GitHubCLI.munki.recipe b/GitHub/GitHubCLI.munki.recipe index bdecd22f..1d23b086 100644 --- a/GitHub/GitHubCLI.munki.recipe +++ b/GitHub/GitHubCLI.munki.recipe @@ -3,7 +3,9 @@ Description - Downloads the latest version of the GitHub command line tool and imports it into Munki. + Downloads the latest version of the GitHub command line tool and imports it into Munki. + +Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) or "arm64" for Apple Silicon. Identifier com.github.homebysix.munki.GitHubCLI Input @@ -12,6 +14,8 @@ apps/GitHub NAME GitHub CLI + SUPPORTED_ARCH + x86_64 pkginfo catalogs @@ -26,6 +30,10 @@ GitHub CLI name %NAME% + supported_architectures + + %SUPPORTED_ARCH% + unattended_install unattended_uninstall From 3d7c015e40ffc76a5154582338accf385188882d Mon Sep 17 00:00:00 2001 From: "Kevin M. Cox" Date: Mon, 1 Jul 2024 14:59:06 -0500 Subject: [PATCH 2/2] Update GitHubCLI.munki.recipe This commit pivots to using the `FindAndReplace` processor to convert the architecture variable instead of requiring it to be specified independently. --- GitHub/GitHubCLI.munki.recipe | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/GitHub/GitHubCLI.munki.recipe b/GitHub/GitHubCLI.munki.recipe index 1d23b086..fd90cf8d 100644 --- a/GitHub/GitHubCLI.munki.recipe +++ b/GitHub/GitHubCLI.munki.recipe @@ -3,9 +3,7 @@ Description - Downloads the latest version of the GitHub command line tool and imports it into Munki. - -Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) or "arm64" for Apple Silicon. + Downloads the latest version of the GitHub command line tool and imports it into Munki. Identifier com.github.homebysix.munki.GitHubCLI Input @@ -14,8 +12,6 @@ Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) apps/GitHub NAME GitHub CLI - SUPPORTED_ARCH - x86_64 pkginfo catalogs @@ -30,10 +26,6 @@ Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) GitHub CLI name %NAME% - supported_architectures - - %SUPPORTED_ARCH% - unattended_install unattended_uninstall @@ -46,6 +38,19 @@ Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) com.github.homebysix.pkg.GitHubCLI Process + + Arguments + + find + amd64 + input_string + %ARCH% + replace + x86_64 + + Processor + com.github.homebysix.FindAndReplace/FindAndReplace + Arguments @@ -60,6 +65,16 @@ Valid options for SUPPORTED_ARCH input variable are "x86_64" for Intel (defualt) MunkiInstallsItemsCreator + Arguments + + additional_pkginfo + + supported_architectures + + %output_string% + + + Processor MunkiPkginfoMerger