File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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+
5059function Validate-Directory ($output ) {
5160 New-Item $output - ItemType Directory - Force
5261}
5362
63+
5464function 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
You can’t perform that action at this time.
0 commit comments