@ -895,7 +895,12 @@ if (Get-Command "minisign" -ErrorAction SilentlyContinue) {
if ($wingetversion) {
if ($wingetversion) {
Write-Host " Installing minisign version: ${wingetversion} "
Write-Host " Installing minisign version: ${wingetversion} "
Install-WinGetPackage -Id " jedisct1.minisign "
Install-WinGetPackage -Id " jedisct1.minisign "
} else {
Write-Host " Failed to find minisign using winget "
exit
}
}
#refreshing the current session's path should make the new command available (required for powershell 5 at least)
$env:Path = [System.Environment]::GetEnvironmentVariable(" Path " ," Machine " ) + " ; " + [System.Environment]::GetEnvironmentVariable(" Path " ," User " )
if (Get-Command " m i n i s i g n " - E r r o r A c t i o n S i l e n t l y C o n t i n u e ) {
if (Get-Command " m i n i s i g n " - E r r o r A c t i o n S i l e n t l y C o n t i n u e ) {
Write-Host " minisign is now available "
Write-Host " minisign is now available "
} else {
} else {
@ -1046,8 +1051,13 @@ if ($mirrors_response.StatusCode -eq 200) {
continue
continue
}
}
Write-Host " Signature OK - extracting archive "
Write-Host " Signature OK - extracting archive ... "
Expand-Archive -path $outfile -DestinationPath $toolsfolder -Force
#Expand-Archive -path $outfile -DestinationPath $toolsfolder -Force #This is *insanely* (many minutes vs seconds) slow on powershell 5 at least - we get a progress meter, but it's too high a price to pay.
Add-Type -Assembly " System.IO.Compression.Filesystem "
[System.IO.Compression.Zipfile]::ExtractToDirectory($releasearchive,$toolsfolder)
Write-Host " - archive extracted. "
#Remove-Item -Path " $outfile "
#Remove-Item -Path " $outfile "
$zip_rootname = [System.IO.Path]::GetFileNameWithoutExtension($releasearchive)
$zip_rootname = [System.IO.Path]::GetFileNameWithoutExtension($releasearchive)
#Rename-Item -Path
#Rename-Item -Path