Browse Source
Merge pull request #14158 from abpframework/fix-theme-logo-folder-deletion
CLI: Fix theme logo folder remove
pull/14160/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
5 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
|
|
|
@ -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/")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|