[macOS] Rebuilding Launch Services database (#4588)

This commit is contained in:
Sergey Dolin
2021-12-01 12:58:26 +05:00
committed by GitHub
parent f4306a6c40
commit 6f662479c8
2 changed files with 17 additions and 1 deletions

View File

@@ -51,6 +51,11 @@ $xcodeVersions | ForEach-Object {
}
}
Write-Host "Rebuilding Launch Services database ..."
$xcodeVersions | ForEach-Object {
Rebuild-XcodeLaunchServicesDb -Version $_.link
}
Write-Host "Setting default Xcode to $defaultXcode"
Switch-Xcode -Version $defaultXcode
New-Item -Path "/Applications/Xcode.app" -ItemType SymbolicLink -Value (Get-XcodeRootPath -Version $defaultXcode) | Out-Null