Questions tagged [pkgbuild]

Build utility for OSX and iOS installer components.

pkgbuild can refer to the OSX/iOS build tool that builds installer component .pkg files. An OSX product installer can be created from multiple .pkg files.

141 questions
205
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
  • 25,100
  • 8
  • 67
  • 78
37
votes
4 answers

How to create a dmg file for a .app for mac.?

I am a developer of iOS, and developed a mac app. Now I want to distribute my app so that a searched for it and found that we need to upload .app to Mac App Store it looks fine. While for self distribution we can have three options: is to share our…
Anupam Gupta
  • 623
  • 1
  • 7
  • 18
24
votes
8 answers

Editing plist file using shell script

I have used pkgbuild to create a default Component Property List file. The file looks like:
user2653062
  • 697
  • 1
  • 9
  • 16
20
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…
16
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,629
  • 15
  • 84
  • 135
14
votes
4 answers

Porting PackageMaker command line build installer to pkgbuild

I've been attempting to port a Mac PackageMaker command line build to pkgbuild and productbuild but I'm stuck. Unfortunately I haven't found much of anything documenting how these new programs work except for this StackOverflow post and the…
Brent Matzelle
  • 4,073
  • 3
  • 28
  • 27
12
votes
3 answers

Hardened runtime for Java and Mojave

I currently distribute a Java application, packaged and signed using pkgbuild on macOS. Recently, Apple warns developers: "In an upcoming release of macOS, Gatekeeper will require Developer ID–signed software to be notarized by Apple." Upon…
tresf
  • 7,103
  • 6
  • 40
  • 101
10
votes
1 answer

How to include installer dependencies in dmg/pkg on mac

I have a mac application (Eg. Sample.pkg containing Sample.app) along with few pkg dependencies (Eg. A.pkg and B.pkg ). Whenever the user runs the dmg/product archive bundled with these three packages, A.pkg and B.pkg has to be run first before…
Sumalatha Abhishek
  • 641
  • 1
  • 8
  • 16
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,154
  • 28
  • 46
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
8
votes
2 answers

How do you specify a default install location to $HOME with pkgbuild?

I'm in the process of porting our installer from PackageMaker to pkgbuild and am trying to make the default install location be the current user's home directory and still allow the user to install system wide. In my distribution file I have…
Owen Urkov
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

macOS Catalina: trying to install content to the system volume

I have apps that I distribute as .pkg files created using pkgbuild and productbuild. With macOS Catalina, this doesn't work any more. The installer complains that I'm trying to install content to the system volume. I posted three weeks ago…
Jerry Agin
  • 629
  • 1
  • 5
  • 15
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
  • 624
  • 7
  • 25
6
votes
0 answers

macOS Catalina Notarization: "failed strict validation" error while code-signing executable created using pkg npm module

I have packaged a Node.js script into an executable using pkg. With the macOS catalina release, all software should be notarized by Apple. As Apple only allows .dmg, .pkg or .app files for distribution. I used pkgbuild to create an OS X installer…
6
votes
2 answers

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
  • 13,706
  • 1
  • 34
  • 48
1
2 3
9 10