Skip to content

Commit

Permalink
Don't include build number in json version file
Browse files Browse the repository at this point in the history
with minver its always 0, and the version schema doesnt yet support 4-part version numbers
  • Loading branch information
drewcassidy committed Sep 9, 2024
1 parent 0e36153 commit 0d2c562
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions KSPCommon.targets
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,14 @@
<JsonPoke Content="$(_JSON)" Query="$.NAME" RawValue="'%(KSPVersionFile.Name)'">
<Output TaskParameter="Content" PropertyName="_JSON"/>
</JsonPoke>
<JsonPoke Content="$(_JSON)" Query="$.VERSION" RawValue="'%(KSPVersionFile.Version)'" Condition="%(KSPVersionFile.Version) != ''">
<JsonPoke Content="$(_JSON)" Query="$.VERSION"
RawValue="'%(KSPVersionFile.Version)'"
Condition="%(KSPVersionFile.Version) != ''">
<Output TaskParameter="Content" PropertyName="_JSON"/>
</JsonPoke>
<JsonPoke Content="$(_JSON)" Query="$.VERSION" RawValue="'$(FileVersion)'" Condition="%(KSPVersionFile.Version) == ''">
<JsonPoke Content="$(_JSON)" Query="$.VERSION"
RawValue="'$(FileVersion.Split(`.`)[0]).$(FileVersion.Split(`.`)[1]).$(FileVersion.Split(`.`)[2])'"
Condition="%(KSPVersionFile.Version) == ''">
<Output TaskParameter="Content" PropertyName="_JSON"/>
</JsonPoke>
<JsonPoke Content="$(_JSON)" Query="$.URL" RawValue="'%(KSPVersionFile.URL)'" Condition="%(KSPVersionFile.URL) != ''">
Expand Down

0 comments on commit 0d2c562

Please sign in to comment.