feat: 支持版本号

This commit is contained in:
橙子
2024-11-06 00:05:29 +08:00
parent 49f1d1a8fa
commit ed5c20c612
4 changed files with 9 additions and 19 deletions

View File

@@ -79,14 +79,13 @@ namespace Yi.Abp.Tool.Commands
{
var moduleName = moduleNameArgument.Value.ToLower().Replace(".", "-");
unzipDirPath = Path.Combine(path, unzipDirPath);
unzipDirPath = Path.Combine(path, moduleName);
if (Directory.Exists(unzipDirPath))
{
throw new UserFriendlyException($"文件夹[{unzipDirPath}]已存在,请删除后重试");
}
Directory.CreateDirectory(unzipDirPath);
unzipDirPath = moduleName;
}
#endregion