File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,8 @@ function Delete-Unused ($path, $config) {
50
50
function Remove-CreateDumpExe ($path , $config ) {
51
51
$target = " $path \Output\$config "
52
52
53
- $depjson = Get-Content $target \Flow.Launcher.deps.json - raw | ConvertFrom-Json - depth 32
54
- $depjson.targets .' .NETCoreApp,Version=v5.0/win-x64' .' runtimepack.Microsoft.NETCore.App.Runtime.win-x64/5.0.6' .native.PSObject.Properties.Remove(" createdump.exe" )
55
- $depjson | ConvertTo-Json - Depth 32 | Out-File $target \Flow.Launcher.deps.json
56
- Remove-Item - Path $target - Include " *createdump.exe" - Recurse
53
+ $depjson = Get-Content $target \Flow.Launcher.deps.json - raw
54
+ $depjson -replace ' (?s)(.createdump.exe": {.*?}.*?\n)\s*' , " " | Out-File $target \Flow.Launcher.deps.json
57
55
}
58
56
59
57
@@ -127,4 +125,4 @@ function Main {
127
125
}
128
126
}
129
127
130
- Main
128
+ Main
You can’t perform that action at this time.
0 commit comments