mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Clean the intermediate artifact 'psoptions.json' from build (#6356)
This commit is contained in:
1 parent
bcf86d4f8a
commit
25ecf8c83c
1 file changed
+7
-1
@@ -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