Skip to content

Commit b75618c

Browse files
authored
Merge pull request #500 from Flow-Launcher/remove_createdump
dev branch: remove createdump.exe
2 parents fe859f6 + 5442a06 commit b75618c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Scripts/post_build.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,20 @@ 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
54+
$depjson -replace '(?s)(.createdump.exe": {.*?}.*?\n)\s*', "" | Out-File $target\Flow.Launcher.deps.json -Encoding UTF8
55+
Remove-Item -Path $target -Include "*createdump.exe" -Recurse
56+
}
57+
58+
5059
function Validate-Directory ($output) {
5160
New-Item $output -ItemType Directory -Force
5261
}
5362

63+
5464
function Pack-Squirrel-Installer ($path, $version, $output) {
5565
# msbuild based installer generation is not working in appveyor, not sure why
5666
Write-Host "Begin pack squirrel installer"
@@ -108,10 +118,12 @@ function Main {
108118

109119
Publish-Self-Contained $p
110120

121+
Remove-CreateDumpExe $p $config
122+
111123
$o = "$p\Output\Packages"
112124
Validate-Directory $o
113125
Pack-Squirrel-Installer $p $v $o
114126
}
115127
}
116128

117-
Main
129+
Main

0 commit comments

Comments
 (0)