Skip to content

Commit f156ace

Browse files
committed
chore: add build version metadata
1 parent 6a923a3 commit f156ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OTAPI.UnifiedServerProcess/PatchExecutor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public bool Patch(DirectoryInfo outputDir) {
118118
else if (modType == ModType.PreWrite) {
119119
PatchingLogic.Patch(logger, modder.Module);
120120
modder.ModContext.TargetAssemblyName = "OTAPI";
121+
modder.AddMetadata("USPBuildVersion", typeof(PatchExecutor).Assembly.GetName().Version!.ToString());
121122
modder.AddEnvMetadata();
122123
}
123124
else if (modType == ModType.Write) {

0 commit comments

Comments
 (0)