diff --git a/build.psm1 b/build.psm1 index 12de405835..a0f7fbccb0 100644 --- a/build.psm1 +++ b/build.psm1 @@ -1410,6 +1410,11 @@ function Start-PSPackage { "AppImage" { if ($IsUbuntu14) { Start-NativeExecution { bash -iex "$PSScriptRoot/tools/appimage.sh" } + $appImage = Get-Item PowerShell-*.AppImage + if ($appImage.Count -gt 1) { + throw "Found more than one AppImage package, remove all *.AppImage files and try to create the package again" + } + Rename-Item $appImage.Name $appImage.Name.Replace("-","-$Version-") } else { Write-Warning "Ignoring AppImage type for non Ubuntu Trusty platform" }