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
1
vote
1 answer

Permission to access /Library/Application Support from Mac App bundle

I have an app bundle (built with Unity 3d if that is relevant) that I am able to create a .pkg installer using productbuild and distribute on the App Store without issue. However, the app downloads and caches a fair amount of media and has some…
Jon Bell
  • 31
  • 6
1
vote
1 answer

Installation failed with postinstall script Mac OSX

I am trying to create package using pkgbuild and product archive using productbuild. Without scripts, the Installer installs the package successfully. But with scripts, it fails. I googled for it, but couldnt' find a working solution that fixes my…
Swtsvn
  • 315
  • 2
  • 12
1
vote
1 answer

Launch newly-installed application from Mac .pkg with non-admin privileges

I'm building a Mac installer package (.pkg) using pkgbuild and productbuild. I'm able to get my application bundle installed, but I'd like to launch it at the end of the install. I added open /Applications/MyAppName to the postinstall script. This…
alanc10n
  • 4,496
  • 6
  • 33
  • 40
1
vote
1 answer

How to distinguish OS X version in pkgbuild and productbuild

is it possible to distinguish the current OS X version during the installation of a PKG. like: if OS >= 10.9.0 install pkg_for_mavericks.pgk else if < 10.9.0 install pgk_not_for_mavericks.pgk In the past, with the legacy PackageMaker, it was…
jequ
  • 11
  • 2
1
vote
1 answer

How do I use "defaults write" correctly from pkgbuild / productbuild?

I'm building an installer package with pkgbuild --component MyApp.app ... --scripts scriptsdir MyApp.pkg And I would like to set some user defaults after installation. So I made a postinstall script with: defaults write com.mycompany.MyApp key…
jtbandes
  • 104,858
  • 34
  • 217
  • 242
1
vote
1 answer

productbuild --distribution : package xxx.pkg could not be loaded

I'm trying to package an application using the productbuild command to create a pkg file that will hold a license file. Here's how I'm doing it: # Creates the first package productbuild --sign "3rd Party Mac Developer Installer: Tamaggo"…
iDev
  • 507
  • 4
  • 22
1
vote
1 answer

Making OS X web Installer Packages

I have an installer implemented with "Packages" which contains the payload and after running some plugins and a post install script it successfully installs the product. The same package bundle is used for making updates too, as we run it in…
DNax
  • 1,361
  • 1
  • 18
  • 28
1
vote
1 answer

Unity OSX Standalone Player not storing local data

I'm using Unity 3.5, trying to make a standalone OSX player for my application. Everything goes quite swimmingly until I make a pkg from it using productbuild. The syntax for my productbuild line is as follows: productbuild --component…
markt1964
  • 2,258
  • 1
  • 17
  • 42
0
votes
2 answers

unable to install a OSX package created with productbuild

Im quite new to the whole mac development- and deployment world. Im trying to create an OSX app and upload it to the appstore using Itunes Connect and the Application Loader. Im using Mac OSX Version 10.6.8 I have codesigned my App using: codesign…
aoehsen
  • 122
  • 1
  • 5
0
votes
0 answers

how to use plugin with productbuild command to create a package

i am trying to use a installer plugin inside a package for an app. "productbuild --component [App Path] [install Path] --plugin [plugin Path] [package Path]" didn't find my plugin inside the installer pkg. i got a flat pkg file, how to specify the…
sandeep
  • 19
  • 7
0
votes
0 answers

Why is my PKG application installed in users Downloads folder?

I do the Mac installer for my .app using this line in my Makefile: productbuild --component $(MACAPPNAME) /Applications $(unsignedPkg) On one customers computer, the app is not visible in /Applications after installation. On that system I found it…
Volker Schmid
  • 149
  • 10
0
votes
1 answer

Creating a pkg installer for MacOs with the ability to install in the user's home directory

I want to create a pkg file to install the bundle in the user directory (/Users//Applications/). How can I do it? I used the product build with the transfer of the file to the product: productbuild --component ./Bundle.app --product…
m1lka
  • 1
  • 1
0
votes
0 answers

Adding non-bundle files to a macOS package

I’m trying to create a macOS package with pkgbuild / productbuild that includes some non-bundle files. I do not want to use the Packages.app because I need to insure the installer will work on all versions of the operating system in the future…
dangelo
  • 1
  • 1
0
votes
1 answer

Package name is not getting displayed on the installation dialog of my pkg

I am creating a .pkg from other .pkg files. When I try to install the resultant .pkg i can only see "install" on the dialog box package name is not getting displayed on the installation dialog box. How can I make the package name appear on the…
0
votes
0 answers

Add Custom Files to a Package to be installed on specific paths with productbuild/pkgbuild?

I rebuild an existing pkg with productbuild. My root path looks like this: ROOT > Applications/Scripts/Library/private/ In Applications/ is my .app , which works. However in Library for example is another folder "Desktop Pictures" and there is a…
samecat
  • 165
  • 10