Skip to content

Commit 9639fca

Browse files
authored
Fix app packaging
1 parent 4b252b7 commit 9639fca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ foreach ($src in Get-ChildItem src/*) {
3131
Write-Output "build: Packaging project in $src"
3232

3333
if ($suffix) {
34-
& dotnet pack -c Release -o ../../artifacts --version-suffix=$suffix
34+
& dotnet publish -c Release -o ./obj/publish --version-suffix=$suffix
35+
& dotnet pack -c Release -o ../../artifacts --no-build --version-suffix=$suffix
3536
} else {
36-
& dotnet pack -c Release -o ../../artifacts
37+
& dotnet publish -c Release -o ./obj/publish
38+
& dotnet pack -c Release -o ../../artifacts --no-build
3739
}
3840
if($LASTEXITCODE -ne 0) { throw "Packaging failed" }
3941

0 commit comments

Comments
 (0)