build(entrypoint): cross-platform Steamworks-lib copy target
The old `<Exec Command="COPY ...">` PostBuild step only worked on Windows, blocking CI on ubuntu-latest. Replaced with two MSBuild `<Copy>` targets: one AfterTargets="Build" (preserves the existing build-output behavior), one AfterTargets="Publish" (new — publish output now includes the libs automatically, so downstream release packaging doesn't need a shell copy workaround). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -63,8 +63,17 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="COPY "$(ProjectDir)\lib\*" "$(TargetDir)"" />
|
||||
<!-- Copy the Steamworks native libs into the build AND publish output. Was previously
|
||||
an `<Exec Command="COPY ...">` that only ran on Windows; the MSBuild `<Copy>` task
|
||||
is cross-platform, so CI can build on ubuntu-latest without a shell fallback. -->
|
||||
<ItemGroup>
|
||||
<SteamworksNativeLibs Include="$(ProjectDir)lib\**\*" />
|
||||
</ItemGroup>
|
||||
<Target Name="CopySteamworksLibsToOutput" AfterTargets="Build">
|
||||
<Copy SourceFiles="@(SteamworksNativeLibs)" DestinationFolder="$(TargetDir)" SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
<Target Name="CopySteamworksLibsToPublish" AfterTargets="Publish">
|
||||
<Copy SourceFiles="@(SteamworksNativeLibs)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user