From ad6d598c4a4eb0746bfa854f73395d808b8fe780 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 14 Jun 2025 14:26:59 +0800 Subject: [PATCH] Change publish sequence --- Scripts/post_build.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index 6ff4aff56..a1610372d 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -98,18 +98,18 @@ function Pack-Squirrel-Installer ($path, $version, $output) { function Publish-Self-Contained ($p) { + $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_csproj /p:PublishProfile=$command_profile + $csproj = Join-Path "$p" "Flow.Launcher/Flow.Launcher.csproj" -Resolve $profile = Join-Path "$p" "Flow.Launcher/Properties/PublishProfiles/Net7.0-SelfContained.pubxml" -Resolve # 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_csproj /p:PublishProfile=$command_profile } function Publish-Portable ($outputLocation, $version) {