private string GetFileToInstallPath(string fileFullPath, ReleaseManifest.DeployMode deployMode, uint version) { if (deployMode == ReleaseManifest.DeployMode.Managed) { return(String.Format("{0}/managedfiles/{1}/{2}", this.Project.GetFolder(), LeagueInstallation.GetReleaseString(version), fileFullPath)); } else if (deployMode == ReleaseManifest.DeployMode.Deployed) { return(String.Format("{0}/releases/{1}/deploy/{2}", this.Project.GetFolder(), this.Version, fileFullPath)); } else { throw new UnsupportedDeployModeException(); } }
private string GetBackupPath(ReleaseManifest.ReleaseManifestFileEntry fileEntry) { return(String.Format("{0}lol-manager/backup/{1}/{2}/{3}", AppDomain.CurrentDomain.BaseDirectory, this.Project.Name, LeagueInstallation.GetReleaseString(fileEntry.Version), fileEntry.GetFullPath())); }