Questions tagged [productbuild]

Utility to build a product archive (pkg file). It creates a deployable product archive, which can be used with the OS X Installer, or submitted to the Mac App Store.

productbuild is a utility to build a product archive (pkg file). It creates a deployable product archive, which can be used with the OS X Installer, or submitted to the Mac App Store. Both component and Distribution packages can be created using this utility.

73 questions
198
votes
5 answers

Making macOS Installer Packages which are Developer ID ready

Note: This is for OS X Installer packages only, packages for submission to the Mac App Store follow different rules. Because of Mountain Lion's Gatekeeper I finally had to take my PackageMaker build script behind the barn and shoot it. PackageMaker…
catlan
  • 23,677
  • 8
  • 64
  • 74
15
votes
0 answers

How to disable the sheet asking "Do you want to move the installer to the Trash?" after installation is complete

I use pkgbuild productbuild to build the installer. However, installing on OS X 10.12 Sierra, after installation is complete, I see the sheet "Do you want to move the installer to the Trash? To keep this package and disk image in its current…
15
votes
2 answers

OSX .pkg installer sometimes does not install .app file

My Java application has a launcher which is a .app and a helper app which is bundled with it. I am trying to make .pkg installer with a background image using the following commands: pkgbuild --root "./Temp" --identifier "com.company.id"…
Mike2012
  • 7,159
  • 13
  • 76
  • 131
10
votes
1 answer

Making OS X Installer Packages from Mountain Lion to Lion or Snow leopard

I'm packaging my Mac app following this tutorial. The packages is generated in two steps: First I generate a temporary package with pkgbuild. It contains just the binaries pkgbuild --root ${ROOT} --scripts ${SCRIPTS} --identifier myapp \ …
hithwen
  • 2,057
  • 25
  • 42
10
votes
1 answer

File Ownership Modification by productbuild and pkgbuild

I am trying to create an installer for a Java app on Mac OS 10.8.4. The app runs fine, and I can install it without a hitch from a zip file. I can create a .pkg installer with either productbuild or pkgbuild. I can also install either of the…
Atavus
  • 101
  • 4
9
votes
2 answers

Mac app store productbuild

Apple's document on submitting an app to the Mac App store contains this example use of the command productbuild, from in /Developer/usr/bin/. productbuild \ --component build/Release/Sample.app /Applications \ --sign "3rd Party Mac Developer…
hotpaw2
  • 68,014
  • 12
  • 81
  • 143
7
votes
3 answers

disable "Change Install Location..." button in installer created using productbuild

I want to disable "Change Install Location..." button (screenshot below) in installer. I am trying to create the installer using pkgbuild and productbuild on macOSX 10.8. First, I am creating two .pkg files using pkgbuild. pkgbuild --root myApp…
dDarkLORD
  • 604
  • 5
  • 24
7
votes
1 answer

mac: How to add a License.txt to a pkg built with productbuild using --component option?

We currently build our mac installer as a pkg file using productbuild --component (as per the following post: Mac app store productbuild). This works wonderfully, but I also wish to add a license file to this installer. With packagemaker, you can…
user427182
  • 101
  • 1
  • 3
6
votes
1 answer

How to set background image in MacOS Mojave pkg installer using productbuild?

I'm using productbuild to create a .pkg installer for MacOS Mojave. I've read the schema reference for the Distribution.xml file. I am successfully using this to include a custom welcome. Therefore I know my resource path is being used correctly…
spartygw
  • 2,436
  • 2
  • 19
  • 37
6
votes
1 answer

productbuild: add third-party product archive to installer?

I need to make Mac OS app installer, which also installs other third-party package. When trying to add it via productbuild --synthesize, it tells "ThirdPartyPackage.pkg is a product archive, not a component package". So, how should I correctly…
Nickolay Olshevsky
  • 12,356
  • 1
  • 28
  • 44
6
votes
1 answer

Mac installer package - how to optionally install to multiple locations

I am trying to create a Mac installer package with pkgbuild and productbuild that installs 1 package to 4 locations optionally, depending on the result of the installer options laid out in the distribution definition xml file. Unfortunately, I…
elSnape
  • 302
  • 1
  • 11
6
votes
1 answer

How do I build an OS X installer package with a custom background with productbuild?

I've got a project that relies on the now deprecated PackageMaker tool to create an installer for OS X. I'm working on updating it to use pkgbuild and productbuild. I'm trying to add a custom background to the installer by passing the --resources…
Cody
  • 2,189
  • 2
  • 16
  • 29
5
votes
1 answer

Running postflight script when installing a package on Mac

I am trying to build a mac package installer from a script and I want to run postinstall and postflight scripts. My script for building the package looks like this: pkgbuild --root MyRoot/MyApp.app --identifier com.myapp.MyApp --scripts Scripts…
user2928287
  • 87
  • 1
  • 1
  • 7
5
votes
1 answer

How to run a postflight script using pkgbuild and productbuild on Mac building an installation package

I want to build an installation package for Mac OS X that contains 4 sub packages. The sub packages are build with pkgbuild. The final package is build with productbuild using a Distribution.xml for welcome and license text and install location…
ecreif
  • 1,124
  • 1
  • 11
  • 24
5
votes
0 answers

Using OS X product build for uninstaller

I have my product installer working nicely using pkgbuild and productbuild. However, now I am trying to figure out how to make my installer also function as an uninstaller. I am able to display an uninstall choice for the user by modifying my…
Jesse Barnum
  • 5,619
  • 4
  • 34
  • 59
1
2 3 4 5