Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active December 15, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/5307056 to your computer and use it in GitHub Desktop.
Save stefanschmidt/5307056 to your computer and use it in GitHub Desktop.
Installting the Flash player on OS X via CLI (improved)
FLASH_URL="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_player_12_osx.dmg"
FLASH_DMG=$(mktemp -d -t flash_dmg)/flash.dmg
FLASH_MOUNTPOINT=$(mktemp -d -t flash_mountpoint)
FLASH_PKG="$FLASH_MOUNTPOINT/Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg"
FLASH_PLIST="$FLASH_PKG/Contents/Info.plist"
curl -o $FLASH_DMG $FLASH_URL
hdiutil attach -mountpoint $FLASH_MOUNTPOINT -nobrowse $FLASH_DMG
echo "Current Flash version is $(defaults read "$FLASH_PLIST" CFBundleShortVersionString)"
sudo installer -verbose -pkg "$FLASH_PKG" -target /
hdiutil detach $FLASH_MOUNTPOINT -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment