How to run a packer from a build script?

I have an Ant script that turns my Java application into a nice Mac Bundle package using JarBundler . The problem is, how do I now turn this into a .pkg file for distribution?

I am looking at using the packagemaker command-line tool (located in / Developer / usr / bin / packagemaker), but it has a number of disadvantages:

  • If I use the "-doc" option to specify it in a .pmdoc file (built using the PackageMaker GUI), then I will have to manually change the contents of .pmdoc whenever I add files to my project.
  • If I use the "-root" option to build the package based on the application package, it seems that I do not get many GUI functions (for example, including license text).

How do other people produce the .pkg file with their script construct?

thank

+3
source share
3 answers

I use scripts to automatically update parts of a PackageMaker file. It was more convenient for me to store old format files .pmprojrather than switch to a more recent package format.

+1
source

I use the following to create a package from pmdocand a DMG containing a package in OS X 10.6:

/Developer/usr/bin/packagemaker --verbose --doc [project].pmdoc --out [project].pkg
mkdir -p dmg
cp -pR [project].pkg dmg
hdiutil create dmg/[Project]-r$SVN_REVISION.dmg -volname "[Project]" -fs HFS+ -srcfolder dmg
+2
source

packagemaker --resources, . (10.3 , , 10.4 ), , , (, (, ReadMe, ). (Rtf | html) . (Jpg | gif | pdf | tif)), .lproj, . , ( 10.5 10.4-), , , packagemaker.

0

Source: https://habr.com/ru/post/1776467/