Skip to content

Commit

Permalink
Ensure the mod directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcassidy committed Aug 14, 2024
1 parent c38f341 commit f402d43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Shabby.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<AssemblyName>Shabby</AssemblyName>
<GenerateAssemblyVersionAttribute>False</GenerateAssemblyVersionAttribute>
<RepoRootPath>$(ProjectDir)../</RepoRootPath>
<StagingGameData></StagingGameData>
</PropertyGroup>

<!-- DLL Dependencies-->
Expand Down Expand Up @@ -66,10 +67,14 @@
</ItemGroup>
</Target>

<Target Name="MakeModDir" BeforeTargets="BeforeBuild">
<Exec Command="mkdir -p ../GameData/Shabby"/>
</Target>

<!-- Target to generate the .version file -->
<!-- Depends on the jq tool which comes included in the github actions environment and macOS 15 -->
<!-- Can be installed with Brew, Winget, or your linux package manager of choice -->
<Target Name="MakeVersionFiles" AfterTargets="AfterBuild">
<Target Name="MakeVersionFiles" BeforeTargets="BeforeBuild" AfterTargets="MakeModDir">
<Exec Command= "cat '%(VersionFile.Identity)' | jq '.VERSION = {
MAJOR:$(VersionMajor),
MINOR:$(VersionMinor),
Expand Down

0 comments on commit f402d43

Please sign in to comment.