Hello all,
I've seen some variations of this script on here floating around, but not one that does it all for you via a script without a package. I adapted it from a script I found for Adobe Flash Latest Install.
#!/bin/sh
# This script downloads and installs the latest Adobe Air for compatible Macs
# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
# Specify the complete address of the Adobe Air disk image
fileURL="http://airdownload.adobe.com/air/mac/download/latest/AdobeAIR.dmg"
# Specify name of downloaded disk image
air_dmg="/tmp/.dmg"
if [[ ${osvers} -lt 6 ]]; then
echo "Adobe Air is not available for Mac OS X 10.5.8 or below."
fi
if [[ ${osvers} -ge 6 ]]; then
# Download the latest Adobe Air software disk image
/usr/bin/curl --output "$air_dmg" "$fileURL"
# Specify a /tmp/air.XXXX mountpoint for the disk image
TMPMOUNT=`/usr/bin/mktemp -d /tmp/air.XXXX`
# Mount the latest Adobe Air disk image to /tmp/air.XXXX mountpoint
hdiutil attach "$air_dmg" -mountpoint "$TMPMOUNT" -nobrowse -noverify -noautoopen
# Install Adobe Air from the installer package stored inside the disk image
/$TMPMOUNT/Adobe Air Installer.app/Contents/MacOS/Adobe Air Installer -silent -eulaAccepted
# Clean-up
# Unmount the Flash Player disk image from /tmp/air.XXXX
/usr/bin/hdiutil detach "$TMPMOUNT"
# Remove the /tmp/air.XXXX mountpoint
/bin/rm -rf "$TMPMOUNT"
# Remove the downloaded disk image
/bin/rm -rf "$air_dmg"
fi
exit 0
Hope you enjoy it!