From d33f5c07f6a0b7dd9e5727a4ed4d07d1395a661f Mon Sep 17 00:00:00 2001 From: Hanpaopao <510423039@qq.com> Date: Mon, 10 Feb 2025 13:45:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lion/AbpPro/Cli/AbpProCliCoreModule.cs | 8 ++++---- .../Lion/AbpPro/Cli/Commands/CreateCommand.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs index 018cf430..169565fd 100644 --- a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs +++ b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs @@ -58,16 +58,16 @@ public class AbpProCliCoreModule : AbpModule options.RepositoryId = "abp"; options.Templates = new List() { - new AbpProTemplateOptions("abp", "abp", "商业版本源码版本") + new AbpProTemplateOptions("pro", "pro", "商业版本源码版本") { - ExcludeFiles = ".github,LICENSE,Readme.md", + ExcludeFiles = ".github,LICENSE,Readme.md,templates", ReplaceSuffix = ".sln,.csproj,.cs,.cshtml,.json,.ci,.yml,.yaml,.nswag,.DotSettings,.env,Directory.Build.Lion.targets", OldCompanyName = "Lion", OldProjectName = "AbpPro", OldModuleName = "", }, - new AbpProTemplateOptions("abp-nuget", "abp-nuget", "商业版本nuget版本") + new AbpProTemplateOptions("pro-nuget", "pro-nuget", "商业版本nuget版本") { ExcludeFiles = ".github,LICENSE,Readme.md,aspnet-core,.idea,gateways,MyCompanyName.MyProjectName.Gateways.sln,MyCompanyName.MyProjectName.Gateways.sln.DotSettings.user", ReplaceSuffix = ".sln,.csproj,.cs,.cshtml,.json,.ci,.yml,.yaml,.nswag,.DotSettings,.env,Directory.Build.Lion.targets,.sln.DotSettings.user", @@ -76,7 +76,7 @@ public class AbpProCliCoreModule : AbpModule OldModuleName = "", }, - new AbpProTemplateOptions("abp-nuget-gateways", "abp-nuget", "商业版本nuget版本") + new AbpProTemplateOptions("pro-nuget-gateways", "pro-nuget", "商业版本nuget版本") { ExcludeFiles = ".github,LICENSE,Readme.md,aspnet-core,.idea,MyCompanyName.MyProjectName.sln,MyCompanyName.MyProjectName.sln.DotSettings.user", ReplaceSuffix = ".sln,.csproj,.cs,.cshtml,.json,.ci,.yml,.yaml,.nswag,.DotSettings,.env,Directory.Build.Lion.targets,.sln.DotSettings.user", diff --git a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs index 8de8ed0f..606f1244 100644 --- a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs +++ b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs @@ -104,7 +104,7 @@ public class CreateCommand : IConsoleCommand, ITransientDependency // 解压源码 var extractPath = _sourceCodeManager.ExtractProjectZip(localFilePath, _cliOptions.RepositoryId, version); - var contentPath = templateOptions.Name == _cliOptions.RepositoryId ? Path.Combine(extractPath, _cliOptions.RepositoryId) : Path.Combine(extractPath, _cliOptions.RepositoryId, "templates", templateOptions.Name); + var contentPath = templateOptions.Name == "pro" ? Path.Combine(extractPath, _cliOptions.RepositoryId) : Path.Combine(extractPath, _cliOptions.RepositoryId, "templates", templateOptions.Name); // 复制源码到输出目录 var destOutput = Path.Combine(CliPaths.Output, $"{companyName}-{projectName}-{version}");