mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added All-Target to BuildTool
This commit is contained in:
Binary file not shown.
@@ -65,7 +65,7 @@ class ScriptCoreModule : Module
|
|||||||
|
|
||||||
public override string Name => ModuleName;
|
public override string Name => ModuleName;
|
||||||
|
|
||||||
public override List<Type> DependencyTypes => [typeof(SetupNethostModule)];
|
public override List<Type> DependencyTypes => [typeof(SetupNethostModule), typeof(BeefWorkspaceModule)];
|
||||||
|
|
||||||
public override async Task<bool> Run(BuildInfo buildInfo)
|
public override async Task<bool> Run(BuildInfo buildInfo)
|
||||||
{
|
{
|
||||||
@@ -120,7 +120,7 @@ class BeefWorkspaceModule : Module
|
|||||||
|
|
||||||
public override string Name => ModuleName;
|
public override string Name => ModuleName;
|
||||||
|
|
||||||
public override List<Type> DependencyTypes => [typeof(ScriptCoreModule), typeof(GlitchyEngineHelperModule)];
|
public override List<Type> DependencyTypes => [typeof(GlitchyEngineHelperModule)];
|
||||||
|
|
||||||
public override async Task<bool> Run(BuildInfo buildInfo)
|
public override async Task<bool> Run(BuildInfo buildInfo)
|
||||||
{
|
{
|
||||||
@@ -138,6 +138,18 @@ class BeefWorkspaceModule : Module
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class AllModule : Module
|
||||||
|
{
|
||||||
|
public static readonly string ModuleName = "All";
|
||||||
|
public override string Name => ModuleName;
|
||||||
|
public override List<Type> DependencyTypes => [typeof(BeefWorkspaceModule), typeof(ScriptCoreModule)];
|
||||||
|
|
||||||
|
public override Task<bool> Run(BuildInfo buildInfo)
|
||||||
|
{
|
||||||
|
return Task.FromResult(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
abstract class Module
|
abstract class Module
|
||||||
{
|
{
|
||||||
public abstract string Name { get; }
|
public abstract string Name { get; }
|
||||||
@@ -218,7 +230,7 @@ class Program
|
|||||||
|
|
||||||
static async Task<int> Main(string[] args)
|
static async Task<int> Main(string[] args)
|
||||||
{
|
{
|
||||||
List<Module> modules = [new BeefWorkspaceModule(), new GlitchyEngineHelperModule(), new ScriptCoreModule(), new SetupNethostModule()];
|
List<Module> modules = [new BeefWorkspaceModule(), new GlitchyEngineHelperModule(), new ScriptCoreModule(), new SetupNethostModule(), new AllModule()];
|
||||||
|
|
||||||
// Find dependencies
|
// Find dependencies
|
||||||
foreach (Module module in modules)
|
foreach (Module module in modules)
|
||||||
|
|||||||
@@ -5,15 +5,12 @@
|
|||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<PublishAot>true</PublishAot>
|
|
||||||
<PackAsTool>true</PackAsTool>
|
|
||||||
<UserSecretsId>build-7f7a4354050726fe6f1b5cfd0a8592d0ee71bab853fc1c5c128d53981653347c</UserSecretsId>
|
|
||||||
<StartupObject>BuildTool.Program</StartupObject>
|
<StartupObject>BuildTool.Program</StartupObject>
|
||||||
<PublishSingleFile>true</PublishSingleFile>
|
<UserSecretsId>build-7f7a4354050726fe6f1b5cfd0a8592d0ee71bab853fc1c5c128d53981653347c</UserSecretsId>
|
||||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
|
||||||
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
<PublishAot>true</PublishAot>
|
||||||
<PublishTrimmed>true</PublishTrimmed>
|
<InvariantGlobalization>true</InvariantGlobalization>
|
||||||
<TrimMode>link</TrimMode>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|
||||||
<DeploymentPath>$(SolutionDir)..</DeploymentPath>
|
<DeploymentPath>$(SolutionDir)..</DeploymentPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user