diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index e54852d32..18e896f51 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -104,6 +104,12 @@ function Publish-Self-Contained ($p) { # we call dotnet publish on the main project. # The other projects should have been built in Release at this point. dotnet publish -c Release $csproj /p:PublishProfile=$profile + + $command_csproj = Join-Path "$p" "Flow.Launcher.Command/Flow.Launcher.Command.csproj" -Resolve + $command_profile = Join-Path "$p" "Flow.Launcher.Command/Properties/PublishProfiles/Net7.0-SelfContained.pubxml" -Resolve + + # we call dotnet publish on the command project. + dotnet publish -c Release $command_profile /p:PublishProfile=$profile } function Publish-Portable ($outputLocation, $version) {