I refined my original cask script for installing the software needed on multiple Mac workstations. The new version now allows you to configure parameters of the installation such as install path and which category of applications you wish to install.
The point of this tool is to help me configure (or reconfigure) workstations as needed by removing the manual work of finding the applications I always use online, unpacking, and copying to applications folder. That process becomes a tedious task when working with dozens of pieces of software.
Why a sudden update?
A new version of OS X El Capitan is to be released very soon. I’ve always felt installing a fresh OS ran smoother than doing an upgrade. Maybe the scars are that deep from the days of going Windows 95 to 98? Idk.
Anyways, I’ll be doing a fresh install of El Capitan and I wanted to make sure my apps were in order since I’ve last used my cask script. The process of manually installing each app takes longer than the actual OS install. Furthermore, I don’t need all apps installed in one shot so I broke them up into installable category groups… Something I have been itching to do since the original mockup.
How it works
You’ll notice a file called
install.rb in the project root. This is the
script you will interface with for installing (or uninstalling) applications.
Applications are grouped by categories located in the
where you can add more or less.
You can get a list of configurable options by running the
-h help option.
ruby install.rb -h
The default location cask uses for Application shortcuts is
change this setting in my install command to point to
ruby install.rb --appdir=/Applications
Name of the application category group to install (or uninstall). The category
name should reference a file in the
./category/ directory, excluding the file
extension. If no category group is specified then all will be installed.
ruby install.rb --category=browsers
ruby install.rb -c browsers
This changes the default
install option to
uninstall. With this flag on you
can uninstall a category group or uninstall everything. This option requires no additional arguments.
ruby install.rb -c browsers --uninstall
ruby install.rb -c browsers -u
Unfortunately there is no way to specify the specific version of an app that you need. This hasn’t been much of an issue for me yet but I know it would be nice to have.