mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix build?
This commit is contained in:
parent
57ae3b5e49
commit
c755124900
4 changed files with 10 additions and 2 deletions
|
|
@ -57,7 +57,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
|
||||
<Exec Command="git rev-parse HEAD > ../.version & git show --no-patch --format=%at $(git rev-parse HEAD) >> ../.version & (git diff-index --quiet HEAD -- && echo 1) >> ../.version" IgnoreExitCode="True">
|
||||
<Exec Command="../ci/dotnet-version.sh" IgnoreExitCode="False">
|
||||
</Exec>
|
||||
</Target>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public static class BuildInfoService
|
|||
FullVersion = data[0];
|
||||
Timestamp = data[1];
|
||||
|
||||
IsDev = data[2] == "";
|
||||
IsDev = data.Length < 3 || data[2] == "";
|
||||
|
||||
// show only short commit hash to users
|
||||
Version = FullVersion.Remove(7);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue