minor improvements
This commit is contained in:
@@ -179,7 +179,7 @@ function Build-ProvisionatorSymlink {
|
|||||||
$targetVersion = [SemVer]::Parse($versionInfo.Version).ToString()
|
$targetVersion = [SemVer]::Parse($versionInfo.Version).ToString()
|
||||||
$targetPath = Get-XcodeRootPath -Version $targetVersion
|
$targetPath = Get-XcodeRootPath -Version $targetVersion
|
||||||
if ($sourcePath -ne $targetPath) {
|
if ($sourcePath -ne $targetPath) {
|
||||||
Write-Host "Creating provisionator symlink: '$targetPath' -> '$sourcePath'"
|
Write-Host "Creating symlink: '$targetPath' -> '$sourcePath'"
|
||||||
New-Item -Path $targetPath -ItemType SymbolicLink -Value $sourcePath | Out-Null
|
New-Item -Path $targetPath -ItemType SymbolicLink -Value $sourcePath | Out-Null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ $xcodeVersions | ForEach-Object {
|
|||||||
|
|
||||||
Write-Host "Setting default Xcode to $defaultXcode"
|
Write-Host "Setting default Xcode to $defaultXcode"
|
||||||
Switch-Xcode -Version $defaultXcode
|
Switch-Xcode -Version $defaultXcode
|
||||||
New-Item -Path "/Applications/Xcode.app" -ItemType SymbolicLink -Value (Get-XcodeRootPath -Version $defaultXcode)
|
New-Item -Path "/Applications/Xcode.app" -ItemType SymbolicLink -Value (Get-XcodeRootPath -Version $defaultXcode) | Out-Null
|
||||||
|
|
||||||
Write-Host "Setting environment variables 'XCODE_<VERSION>_DEVELOPER_DIR'"
|
Write-Host "Setting environment variables 'XCODE_<VERSION>_DEVELOPER_DIR'"
|
||||||
Set-XcodeDeveloperDirEnvironmentVariables -XcodeList $xcodeVersions.link
|
Set-XcodeDeveloperDirEnvironmentVariables -XcodeList $xcodeVersions.link
|
||||||
Reference in New Issue
Block a user