How to set-up a PackageMaker project to install in $HOME ?
10/09/05 15:15
If you need to make a .pkg with the installation to begin at the user's home directory.
How do you set-up things in PackageMaker ?
How do you set-up things in PackageMaker ?
If you need to make a .pkg with the installation to begin at the user's home directory.
How do you set-up things in PackageMaker ?
Launch PackageMaker:
1) Create a package with the following flags set:
- Root Volume Only
- Follow Flags
2) Create your file hierarchy on disk like this:
The folder /tmp/UNIQUE_NAME/ will be the default location for the installation
Then create the Library, Pictures, Movies, etc... folder as you wish in Package_contents.
Set the file owner and group to root:admin for the files/folders within UNIQUE_NAME.
3) Create the following preflight script in Install_resources (don't forget to set its executable bit: chmod +x)
#!/bin/sh
ln -s $HOME /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED
exit 0
4) Build and test your package
How do you set-up things in PackageMaker ?
Launch PackageMaker:
1) Create a package with the following flags set:
- Root Volume Only
- Follow Flags
2) Create your file hierarchy on disk like this:
The folder /tmp/UNIQUE_NAME/ will be the default location for the installation
Then create the Library, Pictures, Movies, etc... folder as you wish in Package_contents.
Set the file owner and group to root:admin for the files/folders within UNIQUE_NAME.
3) Create the following preflight script in Install_resources (don't forget to set its executable bit: chmod +x)
#!/bin/sh
ln -s $HOME /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED
exit 0
4) Build and test your package