I am trying to create installer package for Mac using productbuild and pkgbuild . while installing everything looks good but .app file is not getting copied to install-location.
Commands:
/usr/bin/pkgbuild --install-location /Applications/MyAppFolder --identifier com.xxx.xxx --component Content/MyApp.app --scripts Script --version "1.0.1" Build/MyPackage.pkg
In the above command, I have copied signed .app file in the content folder all my scripts in scripts folder. I tried using root arg too. While using root, all the other files available in the Content folder are getting copied at the install-location but not the .app file.
/usr/bin/pkgbuild --install-location /Applications/MyAppFolder --identifier com.xxx.xxx --root Content --scripts Script --version "1.0.1" Build/MyPackage.pkg
I tried using "productbuild" command too but no luck. App file is missing post install.
/usr/bin/productbuild --identifier com.xxx.xxx --package Build/MyPackage.pkg Final/MyPackage.pkg