From c0c4cf41e7525d3d2f823655f1dc3c81a743cae8 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Mon, 27 Mar 2017 15:52:58 -0700 Subject: [PATCH] rename AppImage to include version (#3433) --- build.psm1 | 5 +++++ 1 file changed, 5 insertions(+) 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" }