ReadMe.Mac.txt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Hi All,
  2. So, here is a short description on how I got installation package on mac osx.
  3. 1. Build package.
  4. 2. Copy package and related files to the following directory structure:
  5. ./Package_Root/Applications/MyApp.app/Contents/Info.plist
  6. ./Package_Root/Applications/MyApp.app/Contents/MacOS
  7. ./Package_Root/Applications/MyApp.app/Contents/MacOS/MyAppExec
  8. ./Package_Root/Applications/MyApp.app/Contents/PkgInfo
  9. ./Package_Root/Applications/MyApp.app/Contents/Resources/MyAppIcon.icns
  10. ./Package_Root/Applications/MyApp.app/Contents/Resources/MyAppResources.rsrc
  11. ./Package_Root/usr/share/somedata
  12. ./Package_Root/usr/bin/some_utility
  13. ./Resources/License.txt
  14. ./Resources/ReadMe.txt
  15. ./Resources/Welcome.txt
  16. The file PkgInfo contains "APPL????" The file Info.plist contains
  17. package instructions. I would suggest looking at Info.plist.in in
  18. wxWindows and modify it by putting your info in. MyAppIcon.icns is an
  19. icon created by IconComposer in /Developmer/Applications.
  20. MyAppResources.rsrc is a compiled resources file. I used the one from
  21. wxWindows and it seems to be working fine. Some mac person could
  22. explain this. Make sure that Info.plist contains:
  23. <key>CFBundleIconFile</key>
  24. <string>MyAppIcon.icns</string>
  25. This will tell it which icon to use.
  26. The ./Package_Root/usr/share/somedata and
  27. ./Package_Root/usr/bin/some_utility are some extra data that your
  28. application is using. For example they can be a command line version
  29. of the application and some common files.
  30. The ./Resources directory contains resources used during
  31. installation. The names of files describe what should go in. They can
  32. be rtf, txt...
  33. 3. Create package using PackageMaker.
  34. Fire up PackageMaker from /Developmer/Applications. Fill all the
  35. entries. Most of them are straight forward. Package root is
  36. ./Package_Root. Resources directory is ./Resources. If your
  37. application needs to write to /usr (or to some other place beside
  38. /Applications, then make sure to enable authentication. After you fill
  39. all the entries, create package. This will create a directory on your
  40. disk containing a whole lot of junk. Now you need to package this
  41. directory.
  42. 4. Create a disk image.
  43. Run Disk Copy from /Applications/Utilities. The easiest way of
  44. creating disk image is to first create empty folder, copy all the
  45. files in and then tell Disk Copy to create disk image from folder. So,
  46. create folder MyApp, copy in MyApp.pkg and create package.
  47. Now you are done. This will create one file, which you can copy around.
  48. So, what is missing is how to make application icon show in the
  49. finder. I can make it show when running application, but not when I am
  50. looking at application. Even if I ask for preview.
  51. I guess somebody else will have to answer this.
  52. Good luck.
  53. Andy