productbuild: error: The component at "/Users/user/Downloads/AppName.app" is not a bundle.

Hi, I need help to solve the following error:

productbuild: error: The component at "/Users/user/Downloads/AppName.app" is not a bundle.

That error occurred after the signing process finished successfully and try to execute the following command to create .pkg file:

productbuild --component /Users/user/Downloads/AppName.app /Aplications --timestamp --sign 'CertificateName' /Users/user/Downloads/pkg/AppName.pkg