RE: PackageMaker questions
RE: PackageMaker questions
- Subject: RE: PackageMaker questions
- From: "Steve Sappington" <email@hidden>
- Date: Mon, 26 Sep 2005 18:12:57 -0700
Still no go-
I've made sure permissions are set right, they are:
-rwxr-xr-x the file name is 'postinstall' it resides in the resources folder
inside the pkg
I modified the script slightly:
-script
#!/bin/bash
echo "script started"
cd
ln -s "/Applications/Animation Master 12.0/Animation Master.app"
"$HOME/Desktop/Animation Master.app"
cp /Applications/"Animation Master 12.0"/"com.hash.Master V12.0.plist"
"$HOME/Library/Preferences"
echo "script done"
exit 0
-endscript
The script works like a champ from terminal-
Is there a way I can verify whether or not the pkg is trying to run it?
Any other suggestions?
Steve Sappington
Hash, Inc.
400 West Evergreen Blvd.
Vancouver, WA 98660
360-750-0042
www.hash.com
-----Original Message-----
From: Peter Bierman [mailto:email@hidden]
Sent: Monday, September 26, 2005 5:44 PM
To: Steve Sappington
Cc: email@hidden
Subject: RE: PackageMaker questions
Make sure the script is executable in the package (chmod 555).
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.
-pmb
At 4:24 PM -0700 9/26/05, Steve Sappington wrote:
>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:email@hidden]
>Sent: Monday, September 26, 2005 2:01 PM
>To: Steve Sappington
>Cc: email@hidden
>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
>
>
>
>At 1:44 PM -0700 9/26/05, Steve Sappington wrote:
>>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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden