June 1, 2018 · Munki Substance

Installing Substance Designer & Painter with Munki

Today we needed to bundle and deploy Substance Designer & Painter together and license them.

We downloaded the .pkg files for each app using our Allegorithmic login, and also downloaded the .key files necessary to license Designer & Painter.

Once we had all of those in place, we created a new .pkg using my favorite package GUI tool, Packages and delivered Designer & Painter's .pkg files and their corresponding .key files as a payload to /Users/Shared/.

Then we deployed the below script as a post-install to get everything in the right place and clean up afterward.

#!/bin/bash

sudo installer -pkg /Users/Shared/Substance_Designer-2017.2.5-993-mac-x64-standard-full.pkg -target /

sudo installer -pkg /Users/Shared/Substance_Painter-2017.4.2-2052-mac-x64-standard-full.pkg -target /

mkdir '/Library/Application Support/Allegorithmic'

mkdir '/Library/Application Support/Allegorithmic/Substance Designer/'

mkdir '/Library/Application Support/Allegorithmic/Substance Painter/'

mv '/Users/Shared/license-Substance-Designer.key' '/Library/Application Support/Allegorithmic/Substance Designer/license.key'

mv '/Users/Shared/license-Substance-Painter.key' '/Library/Application Support/Allegorithmic/Substance Painter/license.key'

chmod 777 '/Library/Application Support/Allegorithmic/Substance Designer/license.key'

chmod 777 '/Library/Application Support/Allegorithmic/Substance Painter/license.key'

rm -rf '/Users/Shared/Substance_Designer-2017.2.5-993-mac-x64-standard-full.pkg'

rm -rf '/Users/Shared/Substance_Painter-2017.4.2-2052-mac-x64-standard-full.pkg'

exit

Credit to Kyle Levenick for help coding & testing the script.