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
4
votes
1 answer

Build OSX .pkg file on linux

May I ask what's the practical option to build .pkg file on ubuntu? I was trying xar, but the resulted .pkg file could not be installed on mac, got 'com.apple.installer.pagecontroller error -1' And I was trying to use munkipkg, but it depends on…
lucky_start_izumi
  • 2,511
  • 13
  • 41
  • 61
4
votes
2 answers

OSX Installer Packages: How can I give a choice for language of installation in the installer of my app?

I have used pkgbuild and productbuild to create an installer for my app and it is working correctly. I have license files in different languages (English, Japanese, French). How can I allow users to choose to read the license file of their choice? I…
user2653062
  • 697
  • 1
  • 9
  • 16
4
votes
1 answer

Package a command line script in a Mac OS X pkg

I have a program (created by a colleague, ported from Linux but successfully compiles on Mac) that I need to deploy to lots of Mac workstations. Currently we do so by pushing out pkg files (not ones we created). My general question (that others may…
Mercury00
  • 80
  • 2
  • 10
4
votes
2 answers

pkgbuild postinstall script causes "Installation failed" on others' Macs

I have an issue in my custom installer that occurs when I append a postinstall script to the pkg. On my computer the installation works just fine, but on other users' systems the .app is installed but the postinstall script fails without…
Christoffer
  • 25,035
  • 18
  • 53
  • 77
3
votes
1 answer

MacOS: Asking for "Full Disk Access" during installation process

Background I have a daemon which tracks all activity on system. To work correctly it needs "Full Disk Access". Problem If user manually adds daemon to list in "Preferences/Protection and privacy/Privacy/Full Disk Access" everything works as it…
Marek R
  • 32,568
  • 6
  • 55
  • 140
3
votes
0 answers

Can a macOS package installation failure message be customized?

I have a customized macOS package installer that only executes scripts created by something like the following: pkgbuild --identifier com.example.hello --scripts scripts --nopayload intermediate.pkg productbuild --distribution distribution.dist…
dchang
  • 2,007
  • 14
  • 14
3
votes
1 answer

Create .pkg installer with bare executable

I can use pkgbuild and productbuild to create decent installers for an app. However, I need to create one that installs a bare executable and launch daemon, and I've hit a wall. The crux of the problem seems to be the RootRelativeBundlePath item in…
T. Reed
  • 181
  • 1
  • 9
3
votes
1 answer

pkgbuild OSX, Enforce installation failure in case of downgrade

I'd made a package that include 2 components according to --component-plist file. on the plist file I've added the following flag to prevent downgrade : BundleIsVersionChecked: Don't install bundle if newer version on disk? (bool) when I perform…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
3
votes
1 answer

OSX - where to put my command line binary launchdaemon and dependant dylibs

I have a command line application (not .app bundle), a single executable file. It runs from e.g. usr/bin/myapp . This should be accessible by all users in the mac. It is a LaunchDaemon and run as a as root user. If I keep it in usr/bin it works…
karim
  • 15,408
  • 7
  • 58
  • 96
3
votes
0 answers

Python to modify a .pkg file

My python code need to unpack a .pkg file, modify some file there and pack it again. Any mature python module to suggest? I saw there's pyxar (xarfile), which requires install xar on the machine first. Any other options I could choose? Finally…
lucky_start_izumi
  • 2,511
  • 13
  • 41
  • 61
3
votes
2 answers

Packaging a Mac installer from app bundle installs the folder "Contents" in /Applications instead the bundle itself

When I try to use packaging with my .app to create a Mac installer, and I run the installer, it creates me a folder named "Contents" in my /Applications folder, instead the "bundle app" as it should. I've test with pkgbuild + productbuild: pkgbuild…
FlamingMoe
  • 2,709
  • 5
  • 39
  • 64
3
votes
1 answer

Package different file types with pkgbuild

So I'm packaging a printer tool for our company consisting two .pkg files (drivers) and an .app file. Right now I'm using the following command to build the package: pkgbuild --root ./content --script ./scripts --identifier com.MyGreatCompany…
Matter
  • 429
  • 1
  • 4
  • 15
3
votes
1 answer

OS X Mavericks doesn't install flat packages

I have Mavericks 10.9.4. I created a flat package using pkgbuild and productbuild and tried to install it. Everything goes fine, the UI says that the package is installed successfully, logs doesn't show any errors. Except, the package is not…
Aynat
  • 739
  • 7
  • 8
3
votes
1 answer

OSX .pkg deletes other dev versions

We have created .pkg installer for our Java app and every time we run the the newest .pkg installer it delete previous dev versions of the app. I noticed that this newest installer prints "Removing old files..." when it removes one of the old dev…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
3
votes
3 answers

How do I disable selection of an alternate volume in my OS X installer package?

I'm putting together an installer package for OS X, and I can't figure out how to disable the screen that asks the user which volume to install to. I want it to install to / without prompting. Here's how I'm building the package: pkgbuild--root…
Cody
  • 2,467
  • 2
  • 21
  • 30
1 2
3
9 10