Skip to content

Commit

Permalink
Merge pull request #327 from nvisionative/develop
Browse files Browse the repository at this point in the history
Merge `develop` into `master` for 2.1.1 release
  • Loading branch information
david-poindexter authored Sep 4, 2021
2 parents 638dc64 + f0203d2 commit 9993e63
Show file tree
Hide file tree
Showing 8 changed files with 343 additions and 354 deletions.
18 changes: 3 additions & 15 deletions nvQuickSite/Controllers/PackageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static IEnumerable<Package> GetGitHubPackages()

var ghPackage = new Package();

ghPackage.version = TrimTagName(release);
ghPackage.version = new System.Version(release.TagName.TrimStart('v').Split('-')[0]);

if (index == 0 &&
release.Name.IndexOf("rc", StringComparison.OrdinalIgnoreCase) >= 0 &&
Expand All @@ -200,8 +200,8 @@ private static IEnumerable<Package> GetGitHubPackages()
else if (!release.Name.ToUpperInvariant().Contains("RC") &&
installPackage != null)
{
ghPackage.did = "dnn-platform-" + ghPackage.version.Substring(0, 1);
ghPackage.name = "DNN Platform " + ghPackage.version.Substring(0, 1);
ghPackage.did = "dnn-platform-" + ghPackage.version.Major.ToString();
ghPackage.name = "DNN Platform " + ghPackage.version.Major.ToString();
ghPackage.url = installPackage.BrowserDownloadUrl;
ghPackage.upgradeurl = upgradePackage.BrowserDownloadUrl;
packages.Add(ghPackage);
Expand All @@ -221,17 +221,5 @@ private static IEnumerable<Package> GetGitHubPackages()
return packages;
}
}

private static string TrimTagName(Release release)
{
if (release.TagName != null && release.TagName[0] == 'v')
{
return release.TagName.Remove(0, 1);
}
else
{
return release.TagName;
}
}
}
}
137 changes: 68 additions & 69 deletions nvQuickSite/Controls/Dialogs/MsgBoxOk.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nvQuickSite/Controls/Dialogs/MsgBoxYesNo.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nvQuickSite/Controls/Dialogs/MsgBoxYesNoIgnore.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9993e63

Please sign in to comment.