def packaged_app_as_json
      app = spec.packaged_app
      json = {
        :local_path => app.page
      }

      unless app.container.nil?
        json[:container] = app.container
        if app.container == 'panel'
          json[:width] = app.width
          json[:height] = app.height
        end
      end

      { :launch => json }
    end
def packaged_app_as_json
      app = spec.packaged_app
      json = {
        :local_path => app.page
      }

      unless app.container.nil?
        json[:container] = app.container
        if app.container == 'panel'
          json[:width] = app.width
          json[:height] = app.height
        end
      end

      { :launch => json }
    end
Return the manifest representation of a packaged app