diff --git a/bin/dotnet/Epicmorg.DockerGenerator.csproj b/bin/dotnet/Epicmorg.DockerGenerator.csproj index 42ed1bdff..0bb737852 100644 --- a/bin/dotnet/Epicmorg.DockerGenerator.csproj +++ b/bin/dotnet/Epicmorg.DockerGenerator.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/bin/dotnet/Program.cs b/bin/dotnet/Program.cs index db1e74e74..77a211c0f 100644 --- a/bin/dotnet/Program.cs +++ b/bin/dotnet/Program.cs @@ -16,13 +16,14 @@ /// Atlassian product JSON /// Product name /// Overwrite existing directories + /// Overwrite archive type /// Silently ignore versions without templates /// - public static async Task Main(DirectoryInfo workdir, FileInfo json, string product, bool force = false, bool ignoreVersionsWithoutTemplates = false) + public static async Task Main(DirectoryInfo workdir, FileInfo json, string product, bool force = false, bool ignoreVersionsWithoutTemplates = false,string archiveType = ".tar.gz") { var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1]; var items = JsonSerializer.Deserialize(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); - foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(".tar.gz"))) + foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(archiveType))) { var majorVersion = item.Version.Split(".").First(); var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);