mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
rename AppImage to include version (#3433)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user