So I'm trying to create a package as a mean of distribution for my project (developed in Python). So far all the dependencies and installs of smaller components are done by the means of an install.sh that is in $PROJECTDIR/main/trunk. This works fine when i run it from it's folder.
Now for creating the package I dropped the whole $PROJECTDIR into PackageMaker and after I added install.sh as a postinstall script. The package was created with no errors. Now if I try to install however, the $PROJECTDIR is copied where it is suppose to but an error occurs when running the script.
So my first question would be:
Regards, Bogdan
Ok so the way I handled this was to use echo >> ~/some_file.txt for the debugging because MacOS installer doesn't have any kind of debugging for script files.
As for the second problem, if someone runs into this, you need to be carefull with your script to satisfy the following: