From dce44e9c2d115ca02d2f987e9535a81497d319f6 Mon Sep 17 00:00:00 2001 From: GGG KILLER Date: Wed, 24 Nov 2021 16:34:44 -0300 Subject: [PATCH] Update publish script to set server version. --- publish-server.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/publish-server.ps1 b/publish-server.ps1 index c6aeeb6..8863d01 100644 --- a/publish-server.ps1 +++ b/publish-server.ps1 @@ -2,13 +2,17 @@ param( [switch]$Debug = $false ) +$package = Get-Content "package.json" | ConvertFrom-Json +$version = $package.version + $archs = @("win", "linux", "osx") $dotnetArgs = @( "--nologo", "--verbosity", "quiet", "--self-contained", "--framework", "net6.0", - "-p:PublishSingleFile=true" + "-p:PublishSingleFile=true", + "-p:Version=$version" ) if ($Debug) { $dotnetArgs += @("--configuration", "Debug")