Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Last active August 29, 2015 14:23
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 nmcspadden/ee0d6213803453de74dd to your computer and use it in GitHub Desktop.
Save nmcspadden/ee0d6213803453de74dd to your computer and use it in GitHub Desktop.
#!/bin/bash
temppath="$(mktemp -d -t AdobeDreamweaver)"
/bin/mkdir -p "$temppath/Library/Preferences/"
/bin/cp "Adobe Dreamweaver CC 2015 Prefs" "$temppath/Library/Preferences/Adobe Dreamweaver CC 2015 Prefs"
/bin/mkdir -p "$temppath/usr/local/outset/login-once"
/bin/chmod ugo+x AdobeDWCCPrefs.sh
/bin/cp AdobeDWCCPrefs.sh "$temppath/usr/local/outset/login-once/"
/bin/mkdir "scripts"
/bin/cp AdobeDWCCPrefs.sh "scripts/postinstall"
/usr/bin/pkgbuild --root "$temppath" --identifier "org.sacredsf.adobe.dreamweaver.welcome" --scripts "scripts" --version 1.0 AdobeDreamweaver-Welcome.pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment