mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
chore: 移除不必要的枚举
This commit is contained in:
@@ -20,7 +20,7 @@ public partial class Build
|
||||
}
|
||||
var bundle = Parameters.ArtifactOutput / packName;
|
||||
|
||||
Information($"编译输出:{input}");
|
||||
Information($"输出目录:{input}");
|
||||
Information($"打包输出:{bundle}");
|
||||
|
||||
Assert.True(Directory.Exists(input), $"输出目录 {input} 不存在");
|
||||
@@ -63,7 +63,7 @@ public partial class Build
|
||||
|
||||
void BundleMaaBundle(AbsolutePath buildOutput, string bundleName, Package package)
|
||||
{
|
||||
var tempDir = buildOutput.Parent / package.PackageType.ToString();
|
||||
var tempDir = buildOutput.Parent / package.PackageType;
|
||||
FileSystemTasks.EnsureExistingDirectory(tempDir);
|
||||
|
||||
var include = package.Configuration.Include;
|
||||
|
||||
@@ -13,7 +13,7 @@ public partial class Build
|
||||
|
||||
foreach (var package in Parameters.Packages)
|
||||
{
|
||||
FileSystemTasks.EnsureCleanDirectory(Parameters.BuildOutput / package.PackageType.ToString());
|
||||
FileSystemTasks.EnsureCleanDirectory(Parameters.BuildOutput / package.PackageType);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -8,8 +8,7 @@ public record Package
|
||||
public string NameTemplate { get; init; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public PackageTypes PackageType { get; init; }
|
||||
public string PackageType { get; init; }
|
||||
|
||||
[JsonPropertyName("configuration")]
|
||||
public PackageConfiguration Configuration { get; init; }
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace MaaBuilder.Models;
|
||||
|
||||
public enum PackageTypes
|
||||
{
|
||||
MaaBundle,
|
||||
MaaBundleOta,
|
||||
MaaCore,
|
||||
MaaDependency,
|
||||
MaaDependencyNoAvx,
|
||||
MaaResource
|
||||
}
|
||||
Reference in New Issue
Block a user