Notarization for PKG file that contain Automator Application

I made application by Automator,and then I notarized application, It is successful to notarize this app separately. But it is failed to do notarization after generating PKG file,I got some errors as below.
   {
      "severity": "error",
      "code": null,
      "path": "xxxx.pkg/xxx.pkg Contents/Scripts/xxx.app/Contents/MacOS/Application Stub",
      "message": "The signature of the binary is invalid.",
      "docUrl": null,
      "architecture": "x86_64"
    }
This error occurred suddenly in early July, and no changes have been made to the app before that.

Embedded Automator actions are one of the few places where the right option is to use --deep. See this post for details.

IMPORTANT In almost all other cases --deep is a mistake. See --deep Considered Harmful.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Notarization for PKG file that contain Automator Application
 
 
Q