support other extensions when expand

This commit is contained in:
Freddy Kristiansen 2023-04-27 17:21:36 +02:00
Родитель 9f00b2e776
Коммит 54183c6c59
2 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -353,7 +353,19 @@ function Expand-7zipArchive {
}
} else {
Write-Host "using Expand-Archive"
Expand-Archive -Path $Path -DestinationPath "$DestinationPath" -Force
if ([System.IO.Path]::GetExtension($path) -eq '.zip') {
Expand-Archive -Path $Path -DestinationPath "$DestinationPath" -Force
}
else {
$tempZip = Join-Path ([System.IO.Path]::GetTempPath()) "$([guid]::NewGuid().ToString()).zip"
Copy-Item -Path $Path -Destination $tempZip -Force
try {
Expand-Archive -Path $tempZip -DestinationPath "$DestinationPath" -Force
}
finally {
Remove-Item -Path $tempZip -Force
}
}
}
}

Просмотреть файл

@ -1,4 +1,5 @@
4.0.17
Issue #3014 New-BcCompilerFolder requires 7zip
Add parameters for PowerPlatform Authentication to New-ALGoAuthContext (for use with upcoming feature to have PP in AL-Go)
New Parameter excludeRuntimePackages on Sort-AppFilesByDependencies, causes the function to exclude Runtime Packages form the sort
Publish-PerTenantExtensionApps will ignore runtime packages when publishing a collection of apps to an environment