How to build a proper pkg-file that installs an app-bundle on Mac OS?
1
vote
0
answers
4570
views
I know this question was discussed many times before, but the proposed
buildkg
-commands don't work for me on Mac OS Monterey. Here are two commands I tried:
sudo pkgbuild --install-location /Applications/MyApp.app --component $HOME/Build/MyApp.app $HOME/MyApp.pkg
sudo pkgbuild --install-location /Applications --root $HOME/Build $HOME/MyApp.pkg
For both commands I get an empty app-bundle in /Applications
after installation and for some reason (possibly related to APFS copy-on-write feature?) the source app-bundle (used when building the package) gets empty too.
Asked by ababo
(111 rep)
Jun 13, 2022, 11:18 AM