Browse Source

fix: build script

Bruce Wayne 2 weeks ago
parent
commit
e5fc32764f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/build.ps1

+ 2 - 2
scripts/build.ps1

@@ -18,7 +18,7 @@ function Build-Generic {
 
     Remove-Item $publishDir -Recurse -Force -Confirm:$false -ErrorAction Ignore
 
-    dotnet publish -c $configuration -f $net_tfm $proj_path -o $publishDir
+    dotnet publish -f $net_tfm $proj_path -o $publishDir
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
     & "$PSScriptRoot\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin
@@ -38,7 +38,7 @@ function Build {
 
     Remove-Item $publishDir -Recurse -Force -Confirm:$false -ErrorAction Ignore
 
-    dotnet publish -c $configuration -f $net_tfm -r $rid --no-self-contained true $proj_path
+    dotnet publish -f $net_tfm -r $rid --no-self-contained $proj_path -o $publishDir
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
     & "$PSScriptRoot\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin