Skip to content

Commit b7d271d

Browse files
authored
IdentityModel patch to remove commit SHA (#199)
1 parent 5a51063 commit b7d271d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Matt Thalman <[email protected]>
3+
Date: Wed, 30 Aug 2023 09:10:55 -0500
4+
Subject: [PATCH] Remove commit SHA from version string
5+
6+
Needs https://github.com/dotnet/source-build/issues/3573
7+
---
8+
updateAssemblyInfo.sh | 4 +---
9+
1 file changed, 1 insertion(+), 3 deletions(-)
10+
11+
diff --git a/updateAssemblyInfo.sh b/updateAssemblyInfo.sh
12+
index abbcfac6..2c6a119e 100755
13+
--- a/updateAssemblyInfo.sh
14+
+++ b/updateAssemblyInfo.sh
15+
@@ -9,11 +9,9 @@ date=$(date '+%y%m%d%H%M%S')
16+
# Formats the date by replacing the 4-digit year with a 2-digit value and then subtract 19
17+
dateTimeStamp=$(echo $((10#${date:0:2}-19)))${date:2}
18+
19+
-commitSha=$(git rev-parse HEAD)
20+
-
21+
assemblyVersion=$(sed -n 's/.*<assemblyVersion>\([^<]*\)<.*/\1/p' $PWD/buildConfiguration.xml)
22+
assemblyFileVersion="$assemblyVersion.${dateTimeStamp::-6}" # Trim minutes/seconds
23+
-assemblyInformationalVersion="$assemblyVersion.$dateTimeStamp.$commitSha"
24+
+assemblyInformationalVersion="$assemblyVersion.$dateTimeStamp"
25+
26+
echo "assemblyVersion: $assemblyVersion"
27+
echo "assemblyFileVersion: $assemblyFileVersion"

0 commit comments

Comments
 (0)