Exemplo n.º 1
0
        public ActionResult ReleasePackageInstaller(int id)
        {
            Release      rel = CurrentUserModel.GetRelease(id);
            StringWriter sw  = new StringWriter();

            BuildService.GenerateInstallerXml(sw, CurrentUserModel, rel, rel.PlatformsList);
            return(File(Encoding.UTF8.GetBytes(sw.ToString()), "application/x-" + CurrentUserModel.CurrentApplication.AddinPackageSubextension + "-mpack", rel.AddinId + "-" + rel.Version + CurrentUserModel.CurrentApplication.AddinPackageExtension));
        }