Skip to content

Commit

Permalink
Run gitversion on source code before building
Browse files Browse the repository at this point in the history
This causes synced YS dlls to include the current version number in their metadata.
  • Loading branch information
desplesda committed Dec 17, 2024
1 parent fa2357b commit c1de5fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sync-yarnspinner-dlls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [ -d .build-tmp ]; then
fi

cd $YARNSPINNER_FOLDER
dotnet-gitversion /updateAssemblyInfo
mkdir -p .build-tmp
dotnet build --configuration Debug -o .build-tmp YarnSpinner.Compiler

Expand All @@ -37,6 +38,8 @@ rm -fv $YARNSPINNER_DLLS_DIR/Microsoft.CSharp.dll

rm -rf .build-tmp

git checkout "*/AssemblyInfo.cs"

echo "Synced current working directory of Yarn Spinner from $YARNSPINNER_FOLDER"

popd

0 comments on commit c1de5fe

Please sign in to comment.