mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Clean the intermediate artifact 'psoptions.json' from build (#6356)
This commit is contained in:
committed by
Dongbo Wang
parent
bcf86d4f8a
commit
25ecf8c83c
@@ -492,7 +492,13 @@ function Expand-PSSignedBuild
|
||||
|
||||
Restore-PSModuleToBuild -PublishPath $buildPath
|
||||
|
||||
$options = Get-Content -Path (Join-Path $buildPath -ChildPath 'psoptions.json') | ConvertFrom-Json
|
||||
$psOptionsPath = Join-Path $buildPath -ChildPath 'psoptions.json'
|
||||
$options = Get-Content -Path $psOptionsPath | ConvertFrom-Json
|
||||
|
||||
# Remove PSOptions.
|
||||
# The file is only used to set the PSOptions.
|
||||
Remove-Item -Path $psOptionsPath
|
||||
|
||||
$options.PSModuleRestore = $true
|
||||
|
||||
if(Test-Path -Path $windowsExecutablePath)
|
||||
|
||||
Reference in New Issue
Block a user