Skip to content

Commit

Permalink
Update publish script to set server version.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Nov 24, 2021
1 parent 0886604 commit dce44e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion publish-server.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dce44e9

Please sign in to comment.