- the app is put/installed in the program folder
the databases is put in the $USER folder
the package is made using Packages: http://s.sudre.free.fr/Software/documen ... ution.html
the app can be downloaded from a website
- Contents
- folder: MacOs (the actual app)
folder: Resources (here you can put all files you need with your app)
File: info.plist
- folder: MacOs (the actual app)
- make a copy.ch file where you can make your databases folders in the $USER folder and move the databases from Users/shared to $USER/DatabaseFolder (see example below)
put this file in your app in the folder 'Resources'
In your app check if your folder $USER/DatabaseFolder exists
If the folder is not there call the copy.ch in your code with TaskExec( "/bin/sh", ResPath()+"/copy.sh", )
Code: Select all
mkdir /Users/$USER/plantenkennis
mkdir /Users/$USER/plantenkennis/databases
# now move the files from users/shared/Plantenkennis to /users/$user/Plantenkennis
mv /Users/shared/plantenkennis/databases/*.dbf /Users/$USER/plantenkennis/databases
mv /Users/shared/plantenkennis/databases/*.dbt /Users/$USER/plantenkennis/databases
To distribute your app via the web, you need te sign your package with a certificate. You can get a certificate from Apple if you have a developer account. There are different certificates and you need a Mac Production Developer certificate.
Once you have this certificate you can sign your package withe the next command:
Hope these steps are useful for others, if you have any questions, please askproductsign --sign 'Your certificate' YourPackage.pkg YourPackageSigned.pkg