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
6
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
  • 97
  • 1
  • 1
  • 7
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
  • 12
6
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
  • 6,507
  • 6
  • 40
  • 69
5
votes
1 answer

What is the difference between pkgbuild vs productbuild?

I am trying to create a .pkg installer for a CLI on macOS (Monterey). I have come across pkgbuild and productbuild. They are already installed on my mac. Where can i read more about what these CLIs do? (not only how to use). What is the difference…
5
votes
1 answer

OSX PKG installer - part of background image is hidden

I'm trying to build a pkg with a background. I'm working on ElCapt. I'm successful to build pkg with a background image, and here is how it looks like: Portion of background image is hidden beneath welcome note. How can I make this transparent so…
5
votes
0 answers

Create a package installer for a daemon on OSX

I am working on porting a daemon from Linux to OSX. The daemon itself is written in C# and executed with Mono. I am trying to create an installer package for the daemon that is installed into the directory "/Library/MyAppSuite/MyDaemon" and…
John
  • 791
  • 1
  • 6
  • 22
5
votes
0 answers

pkgbuild allows downgrades

I've got the following two .pkg files: MyApp-v1_3_0.pkg MyApp-v1_2_0.pkg Built using the following two commands respectively: pkgbuild --identifier --version 1.3.0 --root ./MyAppBundle --install-location '/Applications/MyApp test'…
Ash
  • 2,021
  • 2
  • 26
  • 59
5
votes
1 answer

How do you ask the user questions in an OS X installer built with pkgbuild/productbuild?

I'm building an installer using pkgbuild and productbuild, and I want part of the process to involve asking the user some simple questions. These questions can be answered by either check boxes (yes/no) or a small one-line text input field. Once…
John Asmuth
  • 1,052
  • 5
  • 7
5
votes
2 answers

How does one set a background image in an OSX .pkg?

I am creating a .pkg installer for my OSX application and I am having trouble figuring out how to set the background image. I am creating my installer in my build script like this: pkgbuild --root $APP_FOLDER --identifier "com.company.product"…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
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,182
  • 1
  • 12
  • 25
4
votes
1 answer

PKG installer seems signed correctly, but still saying "unidentified developer" on Catalina

we code-sign all executables, the .app and then the final installer (pkg). It works on previous MacOS versions, but sadly, users on MacOS Catalina get the message that the package is from an unidentified developer. I tried to find what's going on…
Volker
  • 428
  • 4
  • 15
4
votes
1 answer

exists in filesystem (owned by filesystem) in PKGBUILD for arch linux

I am trying to build my own mariaDB arch linux package with PKGBUILD i have binries which are teady to be installed . I has bash script (arch linux PKGBUILD) which runs fime and creaes the pkg.tar file . When I try to install it with pacman I get…
user9392253
4
votes
1 answer

Signing and Archiving mac app with productbuild without using xcode for distributing app out side of Mac App Store

I am new to MAC App development and working on project which uses Zoom Mac SDK but that SDK doesn't support archive with Xcode so I need to make archive with other tools suggested by zoom support center. As per their reply app can be archived with…
Viral Mithani
  • 313
  • 4
  • 17
4
votes
1 answer

How to create an OSX (pkg) installer for NodeJS Apps?

I have a nodejs script that I want to package and allow for easy installation for non technical users. It's just a script that runs in the background, so electron seems overkill. I was thinking of making it a launch daemon but not sure how to go…
Jonovono
  • 1,979
  • 7
  • 30
  • 53
4
votes
0 answers

OS X: make pkg, post install script running as root

I'm using Packages to build PKG installer. Its goal quite simple: deliver my app to /Applications folder and launch it. Packages.app is doing its job almost well except one thing. When it launches post install script (simple script that launches…
DeepThought
  • 228
  • 1
  • 3
  • 10
1
2
3
9 10