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) {
47
47
Remove-Item - Path $target - Include " *.xml" - Recurse
48
48
}
49
49
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
+
50
59
function Validate-Directory ($output ) {
51
60
New-Item $output - ItemType Directory - Force
52
61
}
53
62
63
+
54
64
function Pack-Squirrel-Installer ($path , $version , $output ) {
55
65
# msbuild based installer generation is not working in appveyor, not sure why
56
66
Write-Host " Begin pack squirrel installer"
@@ -108,10 +118,12 @@ function Main {
108
118
109
119
Publish-Self - Contained $p
110
120
121
+ Remove-CreateDumpExe $p $config
122
+
111
123
$o = " $p \Output\Packages"
112
124
Validate- Directory $o
113
125
Pack- Squirrel- Installer $p $v $o
114
126
}
115
127
}
116
128
117
- Main
129
+ Main
You can’t perform that action at this time.
0 commit comments