Skip to content

Commit b729cb1

Browse files
taoocerosjjw24
authored andcommitted
remove createdump.exe
1 parent f5401c7 commit b729cb1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Scripts/post_build.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,21 @@ function Delete-Unused ($path, $config) {
4747
Remove-Item -Path $target -Include "*.xml" -Recurse
4848
}
4949

50+
function Remove-CreateDumpExe ($path, $config) {
51+
$target = "$path\Output\$config"
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
57+
}
58+
59+
5060
function Validate-Directory ($output) {
5161
New-Item $output -ItemType Directory -Force
5262
}
5363

64+
5465
function Pack-Squirrel-Installer ($path, $version, $output) {
5566
# msbuild based installer generation is not working in appveyor, not sure why
5667
Write-Host "Begin pack squirrel installer"
@@ -108,6 +119,8 @@ function Main {
108119

109120
Publish-Self-Contained $p
110121

122+
Remove-CreateDumpExe $p $config
123+
111124
$o = "$p\Output\Packages"
112125
Validate-Directory $o
113126
Pack-Squirrel-Installer $p $v $o

0 commit comments

Comments
 (0)