packagemaker

cp exits with a 64 error status

烈酒焚心 提交于 2019-12-11 11:45:10
问题 I am using a preflight bash script in packagemaker : run cp -pf "/folder/to/my/db" "/Library/Application Support/app/db The run function (that I found on StackOverflow by the way) : run() { $*; code=$?; [ $code -ne 0 ] && echo "command [$*] failed with error code $code\nERROR: $@\n"; } The command cp returns a 64 code. What is this 64 status please? How can I resolve that? 回答1: The problem is that you don't have a folder Support/app/db for the command to copy files /folder/to/my/db and

Signing mac installer (pkgmaker)

为君一笑 提交于 2019-12-09 22:06:06
问题 My installer is created using PackageMaker. After that I codesigned the installer using the following command. productsign --sign 'Blah, Inc.' Install.mpkg/ CS/Install.mpkg This seem to work pretty well and I could see that it is signed using the following command. pkgutil --check-signature Install.mpkg Since the certificate is installed on my system in keychain, the installer seem to show a little lock on top right corner. Clicking this opens up the certificate. If the installer is placed in

Changing icon of package created by package maker

[亡魂溺海] 提交于 2019-12-07 15:53:52
问题 I have created package (.pkg) file using packagemaker ver 3.0.4. Is it possible to provide custom icon to the .pkg file. Can some one help me how this can be done ? Thanks in advance. 回答1: The same way you set any other file's, folder's, or package's custom icon. 回答2: Setting an icon for an mpkg, works fine # create a file that actually going to set the icon file touch <package_name>.mpkg/Icon$'\r' # --- copy the customIcon.icns file to the <package_name>.mpkg before doing the sips, if its

How do I get user input into a PackageMaker package?

末鹿安然 提交于 2019-12-07 07:53:19
问题 I'm trying to create an install package. I've got all my components, and I think I understand most of the process. I want to have an install/set-up script that is run as part of the install. I planned to put it either as a post-install action or a post-install script. The problem is that I need user-input. I can't figure out how to either get user input into the script, or how to add a page in the install UI that has a place for user input and then pass that on to the script. I guess, I could

How to pass arguments to package installer from mac terminal

南楼画角 提交于 2019-12-07 02:25:50
问题 I want to do my installation of pkg file as silent install from mac terminal. So i used the below command to do silent install. sudo installer -store -pkg "/User/MyName/Desktop/helloWorld.pkg" -target / It perfectly installed my application. But i want to pass arguments from this command line script to package installer that was created in package maker. So that i can able to use this argument value in post/pre installation script inside the package installer. Is there any possibility to pass

Is PackageMaker considered the standard for Mac OS X software installation? Or is there something else out there?

心不动则不痛 提交于 2019-12-06 12:53:07
I've put together my very first package with PackageMaker (for a system service), but I am not happy about several faults: Frequent crashes while applying target permissions to my source files Package source files are not automatically or easily refreshed File filter does not work Is there something else out there more capable of this task? Free is not a requirement. Yes it is, and yes it's buggy. Apple uses the command line version pretty much exclusively so the GUI tends to have the feeling that it's been slapped together by a summer intern and never tested. PackageMaker is the standard, for

Creating an installer for my Mac application

倾然丶 夕夏残阳落幕 提交于 2019-12-06 08:49:05
问题 I have this Mac application that consists of 2 files: firstFile.tst secondFile I would like to put them in: ~/Library/Audio/MyProg/ ~/Library/Application Support/MyProg/ I would also like the installer to look like them fancy DMG installers (like Skype's). Now, I am a newbie when it comes to Mac but I am willing to learn whatever it takes. I know the dmg installers are actually drags and drops; does that mean that if my application doesn't consist of a real application (it is a plug in -

How do I build an OS X installer package with a custom background with productbuild?

我的梦境 提交于 2019-12-06 00:54:19
问题 I've got a project that relies on the now deprecated PackageMaker tool to create an installer for OS X. I'm working on updating it to use pkgbuild and productbuild. I'm trying to add a custom background to the installer by passing the --resources flag to productbuild with the directory containing the background image. I don't get any errors from the productbuild command, but when I open the package in Pacifist, I don't see my resources included at all. I've tried referencing the background

PackageMaker “Result of Script” requirement never passes

余生长醉 提交于 2019-12-05 21:33:28
I am trying to use the "Result of Script" Requirement to check if a particular process is running, so that I can message the user before installation begins. My script is a shell script that returns 1 for failure and 0 for success. The problem I'm having is that, regardless of my return value, the installer flow is interpreting it as failure. I am not using an incredibly simple script: #!/bin/bash echo "script starting">> /tmp/myfile true (the echo is to assure myself that the script is, in fact, running). I've tried replacing the last line with a lot of things (exit 0, exit 1, "true", "TRUE")

How do I get user input into a PackageMaker package?

时间秒杀一切 提交于 2019-12-05 17:53:06
I'm trying to create an install package. I've got all my components, and I think I understand most of the process. I want to have an install/set-up script that is run as part of the install. I planned to put it either as a post-install action or a post-install script. The problem is that I need user-input. I can't figure out how to either get user input into the script, or how to add a page in the install UI that has a place for user input and then pass that on to the script. I guess, I could write an apple-script with a dialog to ask the question, and then pass that information on to my shell