File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 31
31
32
32
if ("${{ parameters.vmImageName }}" -like 'macos-*')
33
33
{
34
- $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.tar.gz "
34
+ $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.pkg "
35
35
$downloadFilename = "pwsh_download.pkg"
36
36
}
37
37
if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
@@ -48,14 +48,20 @@ jobs:
48
48
Expand-Archive -Path $downloadDestination -DestinationPath "pwsh-preview"
49
49
$powerShellPreview = Join-Path $pwd "pwsh-preview" "pwsh.exe"
50
50
}
51
- if ("${{ parameters.vmImageName }}" -like 'ubuntu-*' -or "${{ parameters.vmImageName }}" -like 'macos-*' )
51
+ if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
52
52
{
53
53
gunzip -d $downloadDestination
54
54
$downloadDestination = $downloadDestination.Replace(".gz", "")
55
55
mkdir "pwsh-preview"
56
56
tar -x -f $downloadDestination -C "pwsh-preview"
57
57
$powerShellPreview = Join-Path $pwd "pwsh-preview" "pwsh"
58
58
}
59
+ if ("${{ parameters.vmImageName }}" -like 'macos-*')
60
+ {
61
+ sudo xattr -rd com.apple.quarantine "${downloadDestination}"
62
+ sudo installer -pkg "${downloadDestination}" -target /
63
+ }
64
+
59
65
60
66
# Write the location of PowerShell Preview
61
67
Write-Host "##vso[task.setvariable variable=PowerShellPreviewExecutablePath;]$powershellPreview"
You can’t perform that action at this time.
0 commit comments