mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
actually, use the git hash for this for now
This commit is contained in:
parent
2f4efe4e50
commit
1dd0d60e26
1 changed files with 4 additions and 7 deletions
|
|
@ -109,23 +109,20 @@
|
|||
<ContentWithTargetPath Include="$(ProjectRuntimeConfigFilePath)" CopyToOutputDirectory="PreserveNewest" TargetPath="$(ProjectRuntimeConfigFileName)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="TempWriteAssemblyVersion" BeforeTargets="CoreCompile">
|
||||
<PropertyGroup>
|
||||
<TempAssemblyNameFile>$(OutputPath)TEMP_assver.txt</TempAssemblyNameFile>
|
||||
</PropertyGroup>
|
||||
<Exec Command="echo $(DalamudVersion) > $(TempAssemblyNameFile)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GetGitHash" BeforeTargets="WriteGitHash" Condition="'$(BuildHash)' == ''">
|
||||
<PropertyGroup>
|
||||
<!-- temp file for the git version (lives in "obj" folder)-->
|
||||
<VerFile>$(IntermediateOutputPath)gitver</VerFile>
|
||||
<VerFileClientStructs>$(IntermediateOutputPath)csver</VerFileClientStructs>
|
||||
<TempVerFile>$(OutputPath)TEMP_gitver.txt</TempVerFile>
|
||||
</PropertyGroup>
|
||||
<!-- write the hash to the temp file.-->
|
||||
<Exec Command="git -C "$(ProjectDir.Replace('\','\\'))" describe --long --always --dirty > $(VerFile)" />
|
||||
<Exec Command="git -C "$(ProjectDir.Replace('\','\\'))\..\lib\FFXIVClientStructs" describe --long --always --dirty > $(VerFileClientStructs)" />
|
||||
|
||||
<Exec Command="type $(VerFile) > $(TempVerFile)" />
|
||||
|
||||
<!-- read the version into the GitVersion itemGroup-->
|
||||
<ReadLinesFromFile File="$(VerFile)">
|
||||
<Output TaskParameter="Lines" ItemName="GitVersion" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue