rename build task for broader use
This commit is contained in:
parent
5161ceae52
commit
abe52deba7
|
@ -8,10 +8,10 @@ using Microsoft.Build.Framework;
|
|||
using Microsoft.Build.Utilities;
|
||||
using StardewModdingAPI.Common;
|
||||
|
||||
namespace StardewModdingAPI.ModBuildConfig.Tasks
|
||||
namespace StardewModdingAPI.ModBuildConfig
|
||||
{
|
||||
/// <summary>A build task which packs mod files into a conventional release zip.</summary>
|
||||
public class CreateModReleaseZip : Task
|
||||
/// <summary>A build task which deploys the mod files and prepares a release zip.</summary>
|
||||
public class DeployModTask : Task
|
||||
{
|
||||
/*********
|
||||
** Properties
|
|
@ -38,7 +38,7 @@
|
|||
<Reference Include="System.Web.Extensions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Tasks\CreateModReleaseZip.cs" />
|
||||
<Compile Include="DeployModTask.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!--*********************************************
|
||||
** Import build tasks
|
||||
**********************************************-->
|
||||
<UsingTask TaskName="CreateModReleaseZip" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" />
|
||||
<UsingTask TaskName="DeployModTask" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" />
|
||||
|
||||
<!--*********************************************
|
||||
** Find the basic mod metadata
|
||||
|
@ -152,6 +152,6 @@
|
|||
|
||||
<!-- create release zip if <DeployModZipTo> property is set -->
|
||||
<Message Text="Generating mod release at $(DeployModZipTo)\$(MSBuildProjectName).zip..." Importance="high" Condition="'$(DeployModZipTo)' != ''" />
|
||||
<CreateModReleaseZip ModName="$(MSBuildProjectName)" Files="@(BuildFiles);@(I18nFiles)" OutputFolderPath="$(DeployModZipTo)" Condition="'$(DeployModZipTo)' != ''" />
|
||||
<DeployModTask ModName="$(MSBuildProjectName)" Files="@(BuildFiles);@(I18nFiles)" OutputFolderPath="$(DeployModZipTo)" Condition="'$(DeployModZipTo)' != ''" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue