You need to define the manifest etag and package etag as well in the metadata.json for a packaged app.