Skip to content

Commit 5d4d05a

Browse files
Fix nupkg naming conflict for framework-dependent builds
Co-authored-by: VictoriousRaptor <[email protected]>
1 parent e993bba commit 5d4d05a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Scripts/post_build.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ function Pack-Squirrel-Installer ($path, $version, $output, $inputPath = "$path\
7474
nuget pack $spec -Version $version -BasePath $inputPath -OutputDirectory $output -Properties Configuration=Release
7575

7676
$nupkg = "$output\FlowLauncher.$version.nupkg"
77+
78+
# Rename the nupkg file if this is the framework-dependent version to avoid conflicts
79+
if ($suffix -ne "") {
80+
$nupkgRenamed = "$output\FlowLauncher$suffix.$version.nupkg"
81+
Move-Item $nupkg $nupkgRenamed -Force
82+
$nupkg = $nupkgRenamed
83+
}
84+
7785
Write-Host "nupkg path: $nupkg"
7886
$icon = "$path\Flow.Launcher\Resources\app.ico"
7987
Write-Host "icon: $icon"

0 commit comments

Comments
 (0)