Skip to content

Commit

Permalink
Added post-build events to copy nuget packages to packages folder if …
Browse files Browse the repository at this point in the history
…it exists. Added private signing key reference for official builds.
  • Loading branch information
ravahn committed Jun 20, 2021
1 parent 0098e19 commit f385801
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ Thumbs.db
Desktop.ini
packages/
.vs/
*.snk
22 changes: 21 additions & 1 deletion Machina.FFXIV/Machina.FFXIV.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@
<NeutralLanguage>en</NeutralLanguage>
<Description>Extension to Machina network library to support decoding of Final Fantasy XIV network data</Description>
<Copyright>Copyright © 2021 Ravahn</Copyright>
<PackageLicenseUrl>https://github.com/ravahn/machina/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/ravahn/machina</PackageProjectUrl>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<RepositoryUrl>https://github.com/ravahn/machina</RepositoryUrl>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Ravahn.Machina.Keyfile.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
</PropertyGroup>
<ItemGroup>
<None Remove="Ravahn.Machina.Keyfile.snk" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Headers\Opcodes\Chinese.txt" />
Expand All @@ -32,4 +41,15 @@
<ProjectReference Include="..\Machina\Machina.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="if $(ConfigurationName) == Release (&#xD;&#xA; if EXIST c:\projects\packages (&#xD;&#xA; xcopy /i /y $(TargetDir)..\Machina.FFXIV.*.nupkg c:\projects\packages&#xD;&#xA; )&#xD;&#xA;)" />
</Target>

</Project>
21 changes: 20 additions & 1 deletion Machina/Machina.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,32 @@
<NeutralLanguage>en</NeutralLanguage>
<Description>General-purpose library for raw network packet reading and reassembly</Description>
<Copyright>Copyright © 2021 Ravahn</Copyright>
<PackageLicenseUrl>https://github.com/ravahn/machina/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/ravahn/machina</PackageProjectUrl>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>TRUE</EnforceCodeStyleInBuild>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<RepositoryUrl>https://github.com/ravahn/machina</RepositoryUrl>
<PackageTags>raw socket winpcap tcpip c# packet sniffer</PackageTags>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Ravahn.Machina.Keyfile.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
</PropertyGroup>
<ItemGroup>
<None Remove="Ravahn.Machina.Keyfile.snk" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
</ItemGroup>
<ItemGroup>
<None Include="..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="if $(ConfigurationName) == Release (&#xD;&#xA; if EXIST c:\projects\packages (&#xD;&#xA; xcopy /i /y $(TargetDir)..\Machina.*.nupkg c:\projects\packages&#xD;&#xA; )&#xD;&#xA;)" />
</Target>
</Project>
20 changes: 0 additions & 20 deletions Machina/Machina.csproj.nuspec

This file was deleted.

0 comments on commit f385801

Please sign in to comment.