Skip to content

Commit

Permalink
change: use PureSharpCompress instead
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Nov 24, 2024
1 parent 6d4b040 commit c04d3bc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/MicaSetup.Tools/MakeMica.Cli/App.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MakeMica.Cli.Core;
using MakeMica.Cli.Helper;
using MakeMica.Shared;
using SharpCompress.Common;
using PureSharpCompress.Common;

namespace MakeMica.Cli;

Expand Down
12 changes: 6 additions & 6 deletions build/MicaSetup.Tools/MakeMica.Cli/Helper/ArchiveFileHelper.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using SharpCompress.Archives.GZip;
using SharpCompress.Archives.Rar;
using SharpCompress.Archives.SevenZip;
using SharpCompress.Archives.Zip;
using SharpCompress.Common;
using SharpCompress.Readers;
using PureSharpCompress.Archives.GZip;
using PureSharpCompress.Archives.Rar;
using PureSharpCompress.Archives.SevenZip;
using PureSharpCompress.Archives.Zip;
using PureSharpCompress.Common;
using PureSharpCompress.Readers;

namespace MakeMica.Cli.Helper;

Expand Down
2 changes: 1 addition & 1 deletion build/MicaSetup.Tools/MakeMica.Cli/MakeMica.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageReference Include="UTF.Unknown" Version="2.5.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SharpCompress" Version="0.33.0" />
<PackageReference Include="PureSharpCompress" Version="0.38.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion build/MicaSetup/Helper/Setup/ArchiveFileHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void ProgressCallback(double progress)
{
if (currentProgress != progress || currentKey != reader.Entry.Key)
{
progressCallback?.Invoke(currentProgress = progress, currentKey = reader.Entry.Key);
progressCallback?.Invoke(currentProgress = progress, currentKey = reader.Entry.Key!);
}
}

Expand Down
1 change: 0 additions & 1 deletion build/MicaSetup/Helper/Setup/InstallHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace MicaSetup.Helper.Helper;

Expand Down
5 changes: 3 additions & 2 deletions build/MicaSetup/MicaSetup.Uninst.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<EnableNETAnalyzers>false</EnableNETAnalyzers>
<AnalysisLevel>6.0-recommended</AnalysisLevel>
<SignAssembly>True</SignAssembly>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>app.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);UNINST</DefineConstants>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down Expand Up @@ -78,10 +78,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Costura.Fody" Version="5.7.0" Condition=" '$(Configuration)' == 'Release'">
<PackageReference Include="Costura.Fody" Version="5.7.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PureSharpCompress" Version="0.38.0" Condition="'$(Configuration)' == 'Debug'"/>
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions build/MicaSetup/MicaSetup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<EnableNETAnalyzers>false</EnableNETAnalyzers>
<AnalysisLevel>6.0-recommended</AnalysisLevel>
<SignAssembly>True</SignAssembly>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>app.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);SETUP</DefineConstants>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down Expand Up @@ -81,12 +81,11 @@
</ItemGroup>

<ItemGroup>
<!--<PackageReference Include="Costura.Fody" Version="5.7.0" Condition="'$(Configuration)' == 'Release'">-->
<PackageReference Include="Costura.Fody" Version="5.7.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PureSharpCompress" Version="0.38.0-rc3" />
<PackageReference Include="PureSharpCompress" Version="0.38.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit c04d3bc

Please sign in to comment.