Beispiel #1
0
        public ActionResult DeleteRelease(int releaseId)
        {
            Release r = CurrentUserModel.GetRelease(releaseId);

            CurrentUserModel.DeleteRelease(r);
            return(RedirectToAction("Index", new { id = r.ProjectId }));
        }
Beispiel #2
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));
        }
Beispiel #3
0
        public ActionResult ReleasePackage(int id, string platform)
        {
            Release rel = CurrentUserModel.GetRelease(id);

            return(File(rel.GetFilePath(platform), "application/x-mpack", rel.AddinId + "-" + rel.Version + ".mpack"));
        }