Skip to content

Commit ad6d598

Browse files
committed
Change publish sequence
1 parent a34e404 commit ad6d598

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Scripts/post_build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
9898

9999
function Publish-Self-Contained ($p) {
100100

101+
$command_csproj = Join-Path "$p" "Flow.Launcher.Command/Flow.Launcher.Command.csproj" -Resolve
102+
$command_profile = Join-Path "$p" "Flow.Launcher.Command/Properties/PublishProfiles/Net7.0-SelfContained.pubxml" -Resolve
103+
104+
# we call dotnet publish on the command project.
105+
dotnet publish -c Release $command_csproj /p:PublishProfile=$command_profile
106+
101107
$csproj = Join-Path "$p" "Flow.Launcher/Flow.Launcher.csproj" -Resolve
102108
$profile = Join-Path "$p" "Flow.Launcher/Properties/PublishProfiles/Net7.0-SelfContained.pubxml" -Resolve
103109

104110
# we call dotnet publish on the main project.
105111
# The other projects should have been built in Release at this point.
106112
dotnet publish -c Release $csproj /p:PublishProfile=$profile
107-
108-
$command_csproj = Join-Path "$p" "Flow.Launcher.Command/Flow.Launcher.Command.csproj" -Resolve
109-
$command_profile = Join-Path "$p" "Flow.Launcher.Command/Properties/PublishProfiles/Net7.0-SelfContained.pubxml" -Resolve
110-
111-
# we call dotnet publish on the command project.
112-
dotnet publish -c Release $command_csproj /p:PublishProfile=$command_profile
113113
}
114114

115115
function Publish-Portable ($outputLocation, $version) {

0 commit comments

Comments
 (0)