From 5d4d05a0770ebb5c603b43d309f463f2d5680e4b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 07:34:42 +0000 Subject: [PATCH] Fix nupkg naming conflict for framework-dependent builds Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> --- Scripts/post_build.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index e0d4c531a..7fe7d58fa 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -74,6 +74,14 @@ function Pack-Squirrel-Installer ($path, $version, $output, $inputPath = "$path\ nuget pack $spec -Version $version -BasePath $inputPath -OutputDirectory $output -Properties Configuration=Release $nupkg = "$output\FlowLauncher.$version.nupkg" + + # Rename the nupkg file if this is the framework-dependent version to avoid conflicts + if ($suffix -ne "") { + $nupkgRenamed = "$output\FlowLauncher$suffix.$version.nupkg" + Move-Item $nupkg $nupkgRenamed -Force + $nupkg = $nupkgRenamed + } + Write-Host "nupkg path: $nupkg" $icon = "$path\Flow.Launcher\Resources\app.ico" Write-Host "icon: $icon"