

- #Blockblock autopkg recipe install#
- #Blockblock autopkg recipe update#
- #Blockblock autopkg recipe code#
The variations you request be specify an output path. Omit any variations you don't want to generate. Use one or more of the following arguments: To generate a variation, add a processor argument to set an output path for that The processor can output variations for an "uninstall," "update," and "install" Images by compositing a "template image" on top of the app icon. Here's an example in YAML format: Process : - Processor : /AppIconExtractor Arguments : source_app : "%RECIPE_CACHE_DIR%/CoolApp/CoolApp.app " icon_output_path : "%RECIPE_CACHE_DIR%/Icons/Icon-%NAME%.png " Generating composited variationsīeyond extracting the app's icon, AppIconExtractor can also create variation This will extract the icon from "CoolApp.app" and save it as a 256px square PNGĪs mentioned, adding the icon_output_path argument will give you additionalĬontrol over the output path and filename.

You can optionally override this output path (and filename) byĪ simple example in XML format might look like: Process Processor /AppIconExtractor Arguments source_app %RECIPE_CACHE_DIR%/CoolApp/CoolApp.app dmg will be mounted automatically.īy default, the app's icon will be output to the recipe's cache directory as If the path to the app points inside a disk It requires only one argument: source_app, which is the path to the. Using AppIconExtractor is as simple as including the processor as a step in a With Pillow installed, you're ready to go. Only a single external dependency – Pillow – that fulfills all our needs. Since AppIconExtractor is primarily targeted towardsįolks managing Macs with tools other than Munki, it makes more sense to require However, MunkiImporter does not provide any features to composite We could use features of this existing processor to accomplish some of
#Blockblock autopkg recipe code#
Processor, via munkilib, includes code to extract and convert icons from appīundles.
#Blockblock autopkg recipe install#
Recipes will produce an error directing you to install Pillow

The explicit path to AutoPkg's Python installation, AutoPkg won't be able toįind the library. Note that this installs the Pillow library within the path of AutoPkg's Pythonįramework. Use this command: /usr/local/autopkg/python -m pip install -upgrade Pillow Pillow is used to convert and composite icons, and can be easily installed on Add it with autopkg repo-add haircut-recipes.ĪppIconExtractor requires installation of the Pillow Python Add my recipes and install the Pillow libraryįirst, you'll need my recipe repository available to your local AutoPkg
#Blockblock autopkg recipe update#
Graphic for use in policies that update an app. The app icon for use in uninstallation policies, or a version with an "update" This makes it simple to automaticallyĬreate a version of an icon with a destructive "red X" icon superimposed over Secondary image on top of the app's icon. ist and saves that image as a PNG file at the path of your choice.Īdditionally, ApplIconExtractor can create icon variations by compositing a More technically, it reads the CFBundleIconFile property from an app's I created the AppIconExtractor AutoPkg processor to fully automateĪt it's core, AppIconExtractor examines an app and exports its icon as a PNG Policy creation with AutoPkg, I should similarly be able to automate icon It's easy enough withĪ tool like SAP's Icons app, but if I'm automating package and However, I don't like manually extracting icons from apps. They help users find items in Self Service, and generally make the I'm a stickler for including icons for all policies available in Jamf Pro's Self Automatically Export and Generate App Icons in AutoPkg Recipes - MacBlog ⌘ MacBlog Posts About RSS feed Contact Automatically Export and Generate App Icons in AutoPkg Recipes
