AFP548

Script for creating packages and disk images

Hello I've been watching this forum for quite some time and I've been also using InstaDMG to create our deployment images. It's a great software and I thought I'd share a script that I've been using a lot lately (since starting to use puppet for mac administration). This script, buildpackage.sh, creates ARD (and hopefully InstaDMG) ready pkg files and it also creates puppet ready dmg files from the packages. The basic workflow is this: 1.) Create a project directory. In this example lets call it mysuperapp. cd into that directory and run "buildpackage.sh -c" which will create the basic directory structure 2.) Copy the files you want to install in the relative subdirectories in component directory. For example component/Applications/MySuperApp.app 3.) Run the script with the following options: "buildpackage.sh -t mysuperapp -n 1.0.7" 4.) You will get mysuperapp-1.0.7.pkg and mysuperapp-1.0.7.pkg.dmg files in your output directory, ready for deployment. Get the script here: [url]http://users.jyu.fi/~hpjuutil/temp/buildpackage.tar.bz2[/url] The script is especially useful when creating packages from simple apps. It makes sure the ownership is root:admin and that others do not have write access to the files. It also removes extended attributes (com.apple.quarantine, com.apple.FinderInfo) and removes Contents/Resources/TokenDefinitions.plist from the packages so that the installer doesn't divert files. Test it and please let me know if there's any problems or suggestions. Best, Hannes Juutilainen University of Jyväskylä Information Management Centre
Exit mobile version