mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
20 lines
541 B
C#
20 lines
541 B
C#
using Nuke.Common;
|
|
using Nuke.Common.IO;
|
|
|
|
namespace MaaBuilder;
|
|
|
|
public partial class Build
|
|
{
|
|
Target UseClean => _ => _
|
|
.Executes(() =>
|
|
{
|
|
FileSystemTasks.EnsureCleanDirectory(Parameters.ArtifactOutput);
|
|
FileSystemTasks.EnsureCleanDirectory(Parameters.BuildOutput / BuildConfiguration.Release);
|
|
|
|
foreach (var package in Parameters.Packages)
|
|
{
|
|
FileSystemTasks.EnsureCleanDirectory(Parameters.BuildOutput / package.PackageType);
|
|
}
|
|
});
|
|
}
|