rename AppImage to include version (#3433)

This commit is contained in:
Steve Lee
2017-03-27 15:52:58 -07:00
committed by Dongbo Wang
parent 3826e47313
commit c0c4cf41e7
+5
View File
@@ -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"
}