diff --git a/src/NetSparkle.Tools.AppCastGenerator/NetSparkle.Tools.AppCastGenerator.csproj b/src/NetSparkle.Tools.AppCastGenerator/NetSparkle.Tools.AppCastGenerator.csproj index e1919737..0a95a2a8 100644 --- a/src/NetSparkle.Tools.AppCastGenerator/NetSparkle.Tools.AppCastGenerator.csproj +++ b/src/NetSparkle.Tools.AppCastGenerator/NetSparkle.Tools.AppCastGenerator.csproj @@ -44,10 +44,10 @@ - 2.0.0.0 - 2.0.0.0 + 2.0.1.0 + 2.0.1.0 NetSparkleUpdater.Tools.AppCastGenerator - 2.0.0 + 2.0.1 Deadpikle LICENSE.md https://github.com/NetSparkleUpdater/NetSparkle @@ -55,7 +55,7 @@ https://github.com/NetSparkleUpdater/NetSparkle.git git sparkle, netsparkle, update, software, updater, appcast, generate, software, app cast - 2.0.0: See https://github.com/NetSparkleUpdater/NetSparkle for all release information and to file issues/pull requests for this project. + 2.0.1: See https://github.com/NetSparkleUpdater/NetSparkle for all release information and to file issues/pull requests for this project. true diff --git a/src/NetSparkle.Tools.AppCastGenerator/Program.cs b/src/NetSparkle.Tools.AppCastGenerator/Program.cs index 1e2039bd..e8037b94 100644 --- a/src/NetSparkle.Tools.AppCastGenerator/Program.cs +++ b/src/NetSparkle.Tools.AppCastGenerator/Program.cs @@ -248,9 +248,9 @@ static void Run(Options opts) var itemTitle = string.IsNullOrWhiteSpace(productName) ? productVersion : productName + " " + productVersion; var urlEncodedFileName = HttpUtility.UrlEncode(fileInfo.Name); - var urlToUse = opts.BaseUrl.ToString().EndsWith("/") - ? opts.BaseUrl.ToString() - : opts.BaseUrl + "/"; + var urlToUse = !string.IsNullOrWhiteSpace(opts.BaseUrl?.ToString()) + ? (opts.BaseUrl.ToString().EndsWith("/") ? opts.BaseUrl.ToString() : opts.BaseUrl + "/") + : ""; if (opts.PrefixVersion) { urlToUse += $"{version}/";