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) {
5050function Remove-CreateDumpExe ($path , $config ) {
5151 $target = " $path \Output\$config "
5252
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
5755}
5856
5957
@@ -127,4 +125,4 @@ function Main {
127125 }
128126}
129127
130- Main
128+ Main
You can’t perform that action at this time.
0 commit comments