chore(plugin): use DalamudPackager

This commit is contained in:
Anna 2021-01-07 16:23:53 -05:00
parent 2abc4ce494
commit fbf3afd7a2
5 changed files with 31 additions and 15 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Target Name="PackagePlugin" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<DalamudPackager
ProjectDir="$(ProjectDir)"
OutputPath="$(OutputPath)"
AssemblyName="$(AssemblyName)"
ManifestType="yaml"
MakeZip="true"/>
</Target>
</Project>

View File

@ -1,10 +0,0 @@
{
"Author": "ascclemens",
"Name": "XIVChat Server",
"Description": "XIVChat is a suite of software allowing you to use FFXIV's chat from different devices. This is the server component required to do so.\n\nFor information about clients to use with this server, see the website.",
"InternalName": "XIVChat",
"AssemblyVersion": "1.3.2",
"RepoUrl": "https://xiv.chat/",
"ApplicableVersion": "any",
"DalamudApiLevel": 2
}

View File

@ -0,0 +1,8 @@
author: ascclemens
name: XIVChat Server
description: |-
XIVChat is a suite of software allowing you to use FFXIV's chat from
different devices. This is the server component required to do so.
For information about clients to use with this server, see the website.
repo_url: https://xiv.chat/

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\DalamudPackager.1.1.0\build\DalamudPackager.props" Condition="Exists('..\packages\DalamudPackager.1.1.0\build\DalamudPackager.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -82,6 +83,7 @@
</Reference>
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
<HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
<Private>False</Private>
@ -118,13 +120,12 @@
<Compile Include="Extensions.cs" />
<Compile Include="GameFunctions.cs" />
<Compile Include="Plugin.cs" />
<Compile Include="PluginUI.cs" />
<Compile Include="PluginUi.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Server.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="XIVChat.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\XIVChatCommon\XIVChatCommon.csproj">
@ -133,8 +134,10 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="DalamudPackager.targets" />
<Content Include="ILRepack.targets" />
<Content Include="Resources\lib\libsodium.dll" />
<Content Include="XIVChat.yaml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
@ -142,16 +145,19 @@
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\ILRepack.Lib.MSBuild.Task.2.0.18.2\build\ILRepack.Lib.MSBuild.Task.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.Lib.MSBuild.Task.2.0.18.2\build\ILRepack.Lib.MSBuild.Task.targets'))" />
<Error Condition="!Exists('..\packages\DalamudPackager.1.1.0\build\DalamudPackager.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\DalamudPackager.1.1.0\build\DalamudPackager.props'))" />
<Error Condition="!Exists('..\packages\DalamudPackager.1.1.0\build\DalamudPackager.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\DalamudPackager.1.1.0\build\DalamudPackager.targets'))" />
</Target>
<Import Project="..\packages\ILRepack.Lib.MSBuild.Task.2.0.18.2\build\ILRepack.Lib.MSBuild.Task.targets" Condition="Exists('..\packages\ILRepack.Lib.MSBuild.Task.2.0.18.2\build\ILRepack.Lib.MSBuild.Task.targets')" />
<Target Name="CleanReferenceCopyLocalPaths" AfterTargets="ILRepacker">
<Delete Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')"/>
<Delete Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" />
<ItemGroup>
<Directories Include="$([System.IO.Directory]::GetDirectories('$(OutDir)%(DestinationSubDirectory)', '*', System.IO.SearchOption.AllDirectories))"/>
<Directories Include="$([System.IO.Directory]::GetDirectories('$(OutDir)%(DestinationSubDirectory)', '*', System.IO.SearchOption.AllDirectories))" />
<Directories>
<Files>$([System.IO.Directory]::GetFiles("%(Directories.Identity)", "*", System.IO.SearchOption.AllDirectories).get_Length())</Files>
</Directories>
</ItemGroup>
<RemoveDir Directories="@(Directories)" Condition="%(Files)=='0'"/>
<RemoveDir Directories="@(Directories)" Condition="%(Files)=='0'" />
</Target>
<Import Project="..\packages\DalamudPackager.1.1.0\build\DalamudPackager.targets" Condition="Exists('..\packages\DalamudPackager.1.1.0\build\DalamudPackager.targets')" />
</Project>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DalamudPackager" version="1.1.0" targetFramework="net48" />
<package id="ILRepack.Lib.MSBuild.Task" version="2.0.18.2" targetFramework="net48" />
<package id="MessagePack" version="2.2.60" targetFramework="net48" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="5.0.0" targetFramework="net48" />