CLI: Fix theme logo folder remove

pull/14158/head
Engincan VESKE 3 years ago
parent 6e9c719f64
commit f49574cf2f

@ -217,14 +217,14 @@ public abstract class AppTemplateBase : TemplateInfo
private void RemoveThemeLogoFolders(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps)
{
if (context.BuildArgs.Theme is not Theme.Lepton && IsPro())
if (context.BuildArgs.Theme != Theme.Lepton && IsPro())
{
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/lepton"));
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/lepton/"));
}
if (context.BuildArgs.Theme is not Theme.LeptonX or Theme.LeptonXLite)
if (context.BuildArgs.Theme != Theme.LeptonX && context.BuildArgs.Theme != Theme.LeptonXLite)
{
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/leptonx"));
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/leptonx/"));
}
}

Loading…
Cancel
Save