Skip to content

Commit

Permalink
Removed the .NET version from the publish command and added -Force to…
Browse files Browse the repository at this point in the history
… the archives to overwrite in case one exists
  • Loading branch information
lmalenfant committed Sep 13, 2024
1 parent dd6824f commit 60a6054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions BuildTestCore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ dotnet test $PWD\src\Vts.Test\Vts.Test.csproj -c Release

Write-Host "Publish the VTS dll to platform specific folders" -ForegroundColor Green
Remove-Item $PWD\publish -Recurse -ErrorAction Ignore
dotnet publish $PWD\src\Vts\Vts.csproj -f net6.0 -c Release -o $PWD\publish\win-x64 --self-contained false
dotnet publish $PWD\src\Vts\Vts.csproj -f net6.0 -c Release -o $PWD\publish\linux-x64 --self-contained false
dotnet publish $PWD\src\Vts\Vts.csproj -f net6.0 -c Release -o $PWD\publish\osx-x64 --self-contained false
dotnet publish $PWD\src\Vts\Vts.csproj -c Release -o $PWD\publish\win-x64 --self-contained false
dotnet publish $PWD\src\Vts\Vts.csproj -c Release -o $PWD\publish\linux-x64 --self-contained false
dotnet publish $PWD\src\Vts\Vts.csproj -c Release -o $PWD\publish\osx-x64 --self-contained false
6 changes: 3 additions & 3 deletions BuildTestReleaseMCCL.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (-not (Test-Path -LiteralPath $releasedir)) {
# Create win-x64 zip
$archive = $releasedir + "\MC_v" + $version + "_Win_x64.zip"
$source = "publish\win-x64\*"
Compress-Archive -Path $source -DestinationPath $archive
Compress-Archive -Force -Path $source -DestinationPath $archive
$matlabdir = "$PWD\matlab"
$matlabfiles = "$matlabdir\post_processing\*"
Compress-Archive -Path $matlabfiles -Update -DestinationPath $archive
Expand All @@ -66,7 +66,7 @@ Compress-Archive -Path $mcinversefiles -Update -DestinationPath $archive
# Create linux-x64 zip
$archive = $releasedir + "\MC_v" + $version + "_Linux_x64.zip"
$source = "publish\linux-x64\*"
Compress-Archive -Path $source -DestinationPath $archive
Compress-Archive -Force -Path $source -DestinationPath $archive
$matlabfiles = "$matlabdir\post_processing\*"
Compress-Archive -Path $matlabfiles -Update -DestinationPath $archive
$mcinversegeneralfiles = "$matlabdir\monte_carlo_inverse\general\*"
Expand All @@ -77,7 +77,7 @@ Compress-Archive -Path $mcinversefiles -Update -DestinationPath $archive
# Create osx-x64 zip
$archive = $releasedir + "\MC_v" + $version + "_Mac_x64.zip"
$source = "publish\osx-x64\*"
Compress-Archive -Path $source -DestinationPath $archive
Compress-Archive -Force -Path $source -DestinationPath $archive
$matlabfiles = "$matlabdir\post_processing\*"
Compress-Archive -Path $matlabfiles -Update -DestinationPath $archive
$mcinversegeneralfiles = "$matlabdir\monte_carlo_inverse\general\*"
Expand Down

0 comments on commit 60a6054

Please sign in to comment.