installer doesn't put on disk embedded application

Hello!

I have an applications which contains another application in Contents/EmbeddedApps/

pkgbuild --root "$rootdir/$APPNAME" --scripts installscripts --install-location "/Applications/$APPNAME" --identifier com.my.id --sign 'Developer ID Installer: *** (YYY)' --version $VERSION "$PACKAGE.pkg"

Notarised then.

Now when I install the package I don't see embedded application inside Contents/EmbeddedApps/

macOS Version 14.6 Beta (23G5061b)

A month ago I was able to install my packges successfully. But now all my old packages are affected.

Also I made simple project with just two "Hello World" applications and embed one into another. I create .pkg notarised package and try to install it. Still EmbeddedApps is empty. But the files of embedded application in build/ directory becomes crowned root:wheel. Looks like installer uses my working directory for embedded application instead of /Applications/MyApp.app/Contents/EmbeddedApps/Emb.app

installer doesn't put on disk embedded application
 
 
Q