82 questions
0
votes
0
answers
64
views
How to properly auto-update MacOS app using pkg?
I have faced some inconvenience performing auto-update with .pkg (installer.app) on my Qt app.
Update sequence:
Check against server if new version available
Download installer (.pkg)
Run installer ...
0
votes
0
answers
72
views
How to prevent cpack with productbuild from modifying and un-signing binaries?
I'm using the productbuild CPACK generator to build a .pkg installer from my binary (actually a bundle containing a shared lib). The binary bundle is built with cmake (Ninja generator) and is properly ...
2
votes
0
answers
50
views
productbuild create an .pkg that install in the current directory, not the `install-path`
productbuild --sign "Developer ID Installer:" --component MyApp.app /Applications/ MyApp.pkg
When running MyApp.pkg MyApp.app will be installed in the current directory, but not in /...
0
votes
1
answer
164
views
How to force the MacOS PKG to ask the user to move the installer to trash after the install?
does anybody know how to setup the MacOS (M3, Sonoma 14.4.1) installer (pkg file created by pkgbuild/productbuild, contained within dmg) to automatically ask the user to move the installer (the whole ...
0
votes
1
answer
171
views
pkgbuild produces a package that fails to install
I am trying to create a simple macOS package that installs a tool in /usr/local/:
hello.c:
#include <stdio.h>
int main(void) {
printf("Hello World\n");
return 0;
}
distribution....
0
votes
0
answers
44
views
How to debug installation of self-made package
I am currently creating a macOS package for IRAF. On some systems, I get the error message (when using the command line installer; similar message when installing though clicking on the package)
$ ...
10
votes
1
answer
4k
views
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?...
0
votes
1
answer
194
views
How to build a pkg for partial patches with pkgbuild?
I tried making an installer (*.pkg) that installs documents and files in the desired path through pkgbuild, and it works.
But in the same way, I made an installer for patching (adding or overwriting ...
0
votes
1
answer
447
views
bundling jdk 8 with Mac OS X installer
I have created a .pkg installer for mac using pkgbuild and product build. Is there a way to bundle java jdk 8 along with the package. Say newer version of java is already installed on Mac and my ...
1
vote
0
answers
714
views
How do you create a PKG file using Xcode?
I have an App built using Xcode 13, and I need this App to be packaged inside a PKG file as follows:
What is the expected way to do this?
Is there a target that can be added to an Xcode project that ...
4
votes
0
answers
612
views
Why can't product build find my Developer ID Installer certificate
I'm trying to build a distributable version of my MacOS app using productbuild. The process used to work for me, but I transferred my files to a different computer, and now I can't complete the ...
1
vote
1
answer
1k
views
Pkgbuild and Productbuild PKG installs always under ROOT. Why?
Please consider the following sh snippet - it produces PAK file that ALWAYS installs under ROOT in /Applications and fails to launch on Mojave unless
sudo -R `whoami` /Applications/MyApp.app
is ...
1
vote
3
answers
2k
views
MacOs App Store pkg Productbuild -- add a property to product list (without Xcode)
Dear macOS Productbuild and pkgbuild experts (without/not using the Xcode)
This is my last hurdle after going through a huge learning journey on product build and pkgbuild
I get the error from ...
0
votes
1
answer
3k
views
Creating a pkg installer for MacOs with the ability to install in the user's home directory [duplicate]
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 --...
4
votes
0
answers
336
views
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
...
2
votes
1
answer
177
views
Custom Apple Packages with new notarization requirement
Is there a method that would allow the creation of custom apple .pkg files that could be generated on the fly that is compatible with the new signing/notarization processes? Is there a recommended ...
8
votes
1
answer
2k
views
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 ...
5
votes
0
answers
627
views
The pkg created using productbuild is not getting installed on Applications/
In Mac OSX when I create a package using productbuild and it creates, as you can see below how it is used, the target is given /Applications. But it never installs at that location. I tried with other ...
1
vote
1
answer
2k
views
How can i convert my Installer build from packagesbuild to productbuild?
I have built an Installer for mac os using packages. Now I want to upload it to app store. But apple complains saying the installer should be built either with Xcode or productbuild. I guess I won't ...
0
votes
1
answer
227
views
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. ...
0
votes
0
answers
689
views
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 ...
0
votes
2
answers
1k
views
Mac installer overwrites ALL copies of file
I’m having an odd issue where my installer properly overwrites the previously installed app, but then overwrites the app in my build directory.
My installer build looks like this:
mkdir /tmp/foo
cp -...
2
votes
1
answer
2k
views
How to customize macOS Installer's name for my package made with productbuild?
I have a build target set up in my Xcode project to create a package from a number of other targets. I added a build phase script that simply runs productbuild, which can automatically detect just ...
1
vote
0
answers
703
views
Create installer package with pdf license using productbuild
I'm using productbuild command line tool on mac to create pkg installer. I need to provide an EULA in my package, so I've modified distribution.xml to include license:
<?xml version="1.0" encoding=...
1
vote
0
answers
262
views
Cannot write in ~/Library/Application Support after package a Qt/C++ application in MacOS
I'm writing my app logs in ~/Library/Application Support (QStandardPaths::AppDataLocation[0]) and all goes well if I start my app from Qt Creator. After package the app with pkgbuild and productbuild, ...
4
votes
1
answer
2k
views
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 ...
1
vote
0
answers
160
views
Can I configure AppleScript to process a .pkg file when clicked, before installation starts?
I have a macOS Application that is packaged as .pkg file, and I want to run another apple script right after clicking .pkg file, but before installing the main application, I want to pre-process it ...
0
votes
1
answer
3k
views
How to enforce Mac package installer to check version?
Based on productbuild's Distribution XML structure, pkg-ref's version attribute is auto-filled by productbuild itself. You can also specify the package version using a --version parameter to ...
0
votes
0
answers
78
views
Signed PKG Installer cannot be opened
I am trying to distribute my application for Mac OS X.
I have signed PKG installer for my application.
I put it into the DMG file and upload to the server to users can download it.
But when my User ...
5
votes
1
answer
1k
views
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 ...
20
votes
0
answers
2k
views
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 ...
1
vote
1
answer
681
views
Sign a XAR with productsign is corrupting the archive file
I am trying to use productsign to sign a XAR archive containing 2 pkg files created using productbuild . The xar tool is creating the file correctly, but I think the signing is corrupting the content, ...
1
vote
1
answer
309
views
How to prohibit the .pkg installer from searching included .app (s) in locations different from the specified installation dir,
This issue has been discussed several times on Stackoverfl0w, but unfortunately I did not see any really satisfying solution.
The situation:
(Only included because most previous answers went with ...
1
vote
2
answers
4k
views
Is there a way to change the logging location of a pkg?
I'm building an installer using pkgbuild and productbuild. I'd like to be able to collect the install logs from my users in the case that anything goes wrong. It'd be nice if those logs were not mixed ...
7
votes
2
answers
3k
views
productbuild path ignored on install
I have an OSX application built with Qt. It is codesigned, packaged up to fit macstore and has been approved by apple and it is ready for sale in the mac store.
Though after installing it, it is ...
2
votes
1
answer
1k
views
Submitting to Mac App Store keeps giving "Invalid Signature" for app's installer
I am trying to submit an app (using Qt 5.4.2 (doubt it matters but including just in case)) to the Mac App Store and for some reason I keep getting the following error:
Invalid Signature - This ...
1
vote
1
answer
1k
views
Using Application Loader to upload debug symbols
I am building and packaging a mac store app from the command line. This results in a .dSYM file I have extracted from the binary within the app using dsymutil, then we codesign the .app, then package ...
0
votes
1
answer
764
views
pkgbuild and moved application
I create an application installer with pkgbuild and productbuild tools on OS X. The package I create installs my application to /Application folder.
Now, if I move this application to another location ...
1
vote
2
answers
3k
views
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 ...
3
votes
1
answer
912
views
osx installation script - detect if firefox is running and restart prompt
I am creating a command line tool for my application.
It uses pkgbuild and productbuild to create the package. Its a launchdaemon binary.
I have preinstall and postinstall scripts.
After ...
3
votes
1
answer
2k
views
View package content created with productbuild
I created a pkg file with the productbuild utility and I'd like to see its content. How can I do that?
I'm under MacOS 10.9.5.
2
votes
1
answer
2k
views
Error uploading to Mac App Store: ITMS-90239
Let me start by saying I know there are myriad questions like this, but I believe I have checked all the causes in previous questions and still have a problem.
My application is using Qt so my ...
3
votes
0
answers
367
views
How do I change the installation path in an OS X installer built with pkgbuild/productbuild?
We have an application which installs to a custom folder and now we have to create an installer for an application extension (plugin).
The installer of the host application was created with a cross-...
0
votes
1
answer
745
views
How to change button text and locations in mac pkg installer page
I have built my pkg in mac using pkgbuild and productbuild. How can we change the text and position of UI buttons in installer pages
0
votes
2
answers
153
views
installation is getting failed when i click cancel of authentication page
I made my pkg file with pkgbuild and productbuild.
Before giving authentication details, it is going in to installation step and showing message "preparing for installation". Without giving ...
4
votes
2
answers
5k
views
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.
...
1
vote
1
answer
2k
views
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, ...
0
votes
1
answer
518
views
How to create a OS X installer for an app that contains a plugin?
My app is properly code signed...
codesign -vv MyApp.app
MyApp.app: valid on disk
MyApp.app: satisfies its Designated Requirement
spctl -vv --assess --type execute MyApp.app
MyApp.app: accepted
...
4
votes
2
answers
1k
views
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 ...
0
votes
1
answer
365
views
Packaging py2app app with productbuild
I am using pyobjc to create my mac app. I generated the .app executable using py2app using the command python setup.py py2app. I am now trying to submit this app to the app store. In order to do this, ...