Skip to content

Commit

Permalink
Add Thunderstore packaging csproj info
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWasUnavailable committed Mar 23, 2024
1 parent 1778133 commit 1cc3169
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions LethalModDataLib/LethalModDataLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,18 @@
<BepInExPluginVersion>$(PlainVersion)</BepInExPluginVersion>
</PropertyGroup>
</Target>

<!-- Pack for Thunderstore -->
<Target
Name="ThunderstorePack"
AfterTargets="PostBuildEvent"
Condition="$(TargetFramework) == 'netstandard2.1' and $(Configuration) == 'Release' and $(CI) == 'true'"
DependsOnTargets="SetPluginVersion"
>
<Exec Command="dotnet tcli build --config-path $(ProjectDir)../assets/thunderstore.toml --package-version $(PlainVersion)"/>
<ItemGroup>
<FilesToRename Include="$(ProjectDir)../dist/*-$(PlainVersion).zip"/>
</ItemGroup>
<Move SourceFiles="@(FilesToRename)" DestinationFiles="@(FilesToRename -&gt; Replace($(PlainVersion), $(MinVerVersion)))"/>
</Target>
</Project>

0 comments on commit 1cc3169

Please sign in to comment.