MxBuild error : App with addon custom widgets

I am facing following error when I try to create deployment package using MxBuild . Error is clearly about the custom widgets used in app. I am using sample app available on app store named as ‘’Budgets”. This app uses custom widgets. If I create deployment package using modeler, then there is no issue.  What is going wrong here ?
1 answers

I got the answer .

You have to keep your ‘widgets’ folder parallel to your .mpr file.

If anyone has any better way to bundle those widgets , suggestions are welcome.