Qt application bundle packaging for submition to App Store

I've built a Qt based application about to be submitted to App Store.


Currently I am doing this:


  1. Build the application in Qt Creatior, which ends up with the application bundle prepared (MyApp.app)
  2. Run macdeploytool (part of Qt tools) to copy all required libraries and resources to application bundle (in Frameworks and Resources)
  3. Run codesign to sign the bundle (signing goes well wih all my identities)


At this point the application bundle is perfectly fine (signed, sandboxed, etc.) and runs without any problem (in a sandbox, as expected).


My question is: how can I create/generate the archive (pkg) which I can then submit to App Store using Application Loader, without going through Xcode automated process (build, sign, package)?


Note please, I can build the application using Xcode, including signing and packaging (Archive), but point 2 above is not executed and as a result, application can't run, because of missing Qt libraries.


Clarification: I distribute the Qt application under LGPL, hence I can't link statically.


Thanks!

Qt application bundle packaging for submition to App Store
 
 
Q