pkgbuild

Editing plist file using shell script

為{幸葍}努か 提交于 2021-02-05 20:03:46
问题 I have used pkgbuild to create a default Component Property List file. The file looks like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd"> <plist version="1.0"> <array> <dict> <key>BundleHasStrictIdentifier</key> <true/> <key>BundleIsRelocatable</key> <true/> <key>BundleIsVersionChecked</key> <true/> <key>BundleOverwriteAction</key> <string>upgrade</string> <key>RootRelativeBundlePath</key> <string

Editing plist file using shell script

纵饮孤独 提交于 2021-02-05 20:00:59
问题 I have used pkgbuild to create a default Component Property List file. The file looks like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd"> <plist version="1.0"> <array> <dict> <key>BundleHasStrictIdentifier</key> <true/> <key>BundleIsRelocatable</key> <true/> <key>BundleIsVersionChecked</key> <true/> <key>BundleOverwriteAction</key> <string>upgrade</string> <key>RootRelativeBundlePath</key> <string

Editing plist file using shell script

孤街浪徒 提交于 2021-02-05 20:00:29
问题 I have used pkgbuild to create a default Component Property List file. The file looks like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd"> <plist version="1.0"> <array> <dict> <key>BundleHasStrictIdentifier</key> <true/> <key>BundleIsRelocatable</key> <true/> <key>BundleIsVersionChecked</key> <true/> <key>BundleOverwriteAction</key> <string>upgrade</string> <key>RootRelativeBundlePath</key> <string

Mac installers with pkgbuild: Do not execute preinstall and postinstall script in case of a downgrade

隐身守侯 提交于 2019-12-12 20:50:16
问题 I made a package with pkgbuild. In info.plist, BundleIsVersionChecked is set to true. My package contains a preinstall and postinstall script in the scripts folder. A downgrade of my application bundle is indeed prevented. But the preinstall and postinstall script is always run, even if the application bundle is not installed. How can I tell pkgbuild not to execute the preinstall and postinstall script when a downgrade is happening? 来源: https://stackoverflow.com/questions/20288834/mac

OSX pkg uninstaller - is it possible to change the “Install” text in the title bar?

我只是一个虾纸丫 提交于 2019-12-11 06:21:21
问题 I created a separated uninstaller to: stop service rm plist file rm datadir ... Problem: in the title bar, it's "Install ..." and the welcome title is "Welcome to ... installer". Is it possible to change the title bar to "Uninstall ..." and the welcome title to "Welcome to ... uninstaller"? 来源: https://stackoverflow.com/questions/49643409/osx-pkg-uninstaller-is-it-possible-to-change-the-install-text-in-the-title-b

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

删除回忆录丶 提交于 2019-12-10 18:54:09
问题 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" $FINAL_PKG This works great but I have not been able to find any information about setting the background image in the man pages. I have seen package installers that have custom background images, how does one set it? EDIT: Here is a screenshot of a

Hardened runtime for Java and Mojave

孤街醉人 提交于 2019-12-01 07:07:53
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 reading the notarizing docs, apple warns developers : "You must enable hardened runtime for your app to be notarized by Apple." Which goes into some details about how to toggle these settings on within Xcode. But what about apps not developed with Xcode? Xamarin/Mono have some back and forth about how they're tackling this but the commits so far seem to

OSX .pkg installer sometimes does not install .app file

梦想与她 提交于 2019-11-30 18:18:46
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" --install-location "/Applications" --sign "signature" "temp.pkg" productbuild --package-path "temp.pkg" --distribution "./Distribution.xml" --package-path "./Temp" --resources "./Resources" --sign "installer signature" "$FINAL_PKG" When I look in the directory at ./Temp both of the .app folders are there and when I deconstruct the .pkg with: pkgutil --expand

OSX .pkg installer sometimes does not install .app file

有些话、适合烂在心里 提交于 2019-11-30 02:18:58
问题 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" --install-location "/Applications" --sign "signature" "temp.pkg" productbuild --package-path "temp.pkg" --distribution "./Distribution.xml" --package-path "./Temp" --resources "./Resources" --sign "installer signature" "$FINAL_PKG" When I look in the

Making OS X Installer Packages like a Pro - Xcode Developer ID ready pkg

倾然丶 夕夏残阳落幕 提交于 2019-11-26 01:23:31
问题 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 was already removed from Xcode and moved into \"Auxiliary Tools for Xcode\", so hopefully it will be soon forgotten. The question is how do I use pkgbuild , productbuild , and pkgutil to replace it? 回答1: Our example project has two build targets: