protected override void LoadData(IZip zip)
{
if (string.IsNullOrWhiteSpace(Manifest.Application.Filename))
throw new InvalidOperationException("Bundle does not contain pebble app");
using (Stream binStream = zip.OpenEntryStream(Manifest.Application.Filename))
{
if (binStream == null)
throw new Exception(string.Format("App file {0} not found in archive", Manifest.Application.Filename));
App = Util.GetBytes(binStream);
AppMetadata = BinarySerializer.ReadObject<ApplicationMetadata>(App);
}
}