site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Make sure the script is executable in the package (chmod 555). -pmb Peter, thanks for your help! Yes, the preferences plist is copied/created when the app runs, but for various reasons, I need to get it there first I've written the following script and called it 'postinstall'- it works perfectly in terminal; however, it doesn't seem to be getting executed when the pkg is executed- I've verified packagemaker is picking it up and putting it in the resources folder inside the package. -script #!/bin/bash echo "script started" cd ln -s "/Applications/Animation Master 12.0/Animation Master.app" "Desktop/Animation Master.app" cp /Applications/"Animation Master 12.0"/"com.hash.Master V12.0.plist" Library/Preferences echo "script done" exit 0 -endscript Steve Sappington Hash, Inc. 400 West Evergreen Blvd. Vancouver, WA 98660 360-750-0042 www.hash.com -----Original Message----- From: Peter Bierman [mailto:bierman@apple.com] Sent: Monday, September 26, 2005 2:01 PM To: Steve Sappington Cc: installer-dev@lists.apple.com Subject: Re: PackageMaker questions Your application (not the installer) should install the preferences plist itself, the first time it runs. If you use the NS or CFPreferences APIs, this will happen for you. As for the alias, does it need to be a real alias, or will a symlink work? If it's a symlink, you can write a simple postinstall script that will ln -s /Applications/Your.app "${HOME}/Desktop/Your.app" -pmb I've built an installer for my Tiger Application using Packagemaker- It's working well except for two things: -I need to be able to create an alias to my application, which is installed in the applications folder, on the desktop -I need to be able to copy a .plist to userhome/Library/Preferences/ I'm stumped, so any suggestions would be greatly appreciated! _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... Also, your script assumes that the working directory is the user's homedir. That's not a safe assumption. Use 'chdir $HOME' at the top of your script to cement this assumption, or change your ln and cp commands to use full paths by adding the $HOME var in each. At 4:24 PM -0700 9/26/05, Steve Sappington wrote: At 1:44 PM -0700 9/26/05, Steve Sappington wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman