File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,17 @@ export class WindowsToolchainInstaller extends VerifyingToolchainInstaller<Windo
121121      core . debug ( `Adding "${ envPath }  " to PATH` ) 
122122      core . addPath ( envPath ) 
123123    } 
124+     const  pwshScript  =  ` 
125+     foreach ($level in "Machine", "User") { 
126+       [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % { 
127+         # For Path variables, append the new values, if they're not already in there 
128+         if ($_.Name -Match 'Path$') { 
129+           Write-Output "Env:$($_.Name), value$($_.Value)" 
130+         } 
131+       } 
132+     } 
133+     ` 
134+     await  exec  ( 'pwsh' ,  [ '--command' ,  pwshScript ] ) 
124135    core . debug ( `Swift installed at "${ swiftPath }  "` ) 
125136    if  ( ! this . visualStudio )  { 
126137      throw  new  Error ( 'No supported Visual Studio installation in installer' ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments