mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
rename AppImage to include version (#3433)
This commit is contained in:
1 parent
3826e47313
commit
c0c4cf41e7
1 file changed
+5
@@ -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