I'm a new Mac user trying to create a *.pkg file which should hold an *.app (let's call it MyApp) and a corresponding sqlite3 database(let's call it MyAppDB.sqlite3). This application has been written in Python and transformed into a Mac application using Pyinstaller . It is hence not a 'native' Mac app.
The *.pkg instalation process should copy the MyApp.app into
~/Applications/MyApp and the related database into
For this purpose I've used Packages, however the program seems no to copy the db into the
~/Library/Application Support/ folder since no new folders or files are created there after the installation process, only the
~/Applications/MyApp folder is correctly created where the app gets copied.
Without the database the program crashes. I've added a bash script which creates in a post-installation manner the missing folders into
~/Library/Application Support/MyApp/ and copies there the MyAppDB.sqlite3 file. Unfortunately the file has only
read persmissions and I cannot change that.
Hence my question:
- any expierience with Packages and how to sucessfully add files to other folder
~/Applications? Maybe I'm doing something wrong... ?
Many thanks in advance for your help!