Skip to content

Commit 15df48d

Browse files
committed
build: enable single-file publishing compression
Enable compression of assemblies in the single-file distribution of GCM. This helps reduce the overall size on disk of GCM, which is important on Windows as we are bundled with Git for Windows, and we don't want to bloat their distribution. We only enable this compression on Windows. Mac and Linux remain uncompressed.
1 parent 957fd0b commit 15df48d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/shared/Git-Credential-Manager/Git-Credential-Manager.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
<InvariantGlobalization>true</InvariantGlobalization>
1616
</PropertyGroup>
1717

18+
<PropertyGroup Condition="$(RuntimeIdentifier.StartsWith('win-'))">
19+
<!--
20+
Prefer to reduce the size of the single file by compressing the containing
21+
assemblies. This will increase the startup time of the application a bit.
22+
Keeping the on-disk size small is important because we are bundled inside
23+
of Git for Windows and we don't want to bloat their distribution.
24+
-->
25+
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
26+
</PropertyGroup>
27+
1828
<ItemGroup>
1929
<ProjectReference Include="..\Atlassian.Bitbucket\Atlassian.Bitbucket.csproj" />
2030
<ProjectReference Include="..\GitHub\GitHub.csproj" />

0 commit comments

Comments
 (0)