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