Skip to content

Commit

Permalink
Use Mile.Aria2 to replace the official Aria2
Browse files Browse the repository at this point in the history
Use Mile.Aria2 to replace the official Aria2
  • Loading branch information
Gaoyifei1011 committed Apr 5, 2023
1 parent 479d773 commit f552866
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Description/README_EN-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ All the content of the program has been developed

### Project References (Sort by alphabetical order)

> * [Aira2](https://aria2.github.io) 
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL) 
> * [Microsoft.WindowsAppSDK](https://github.com/microsoft/windowsappsdk) 
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL) 
> * [Mile.Aria2](https://github.com/ProjectMile/Mile.Aria2) 
> * [Mile.Xaml](https://github.com/ProjectMile/Mile.Xaml) 
[Code referenced or used during the learning process](https://github.com/Gaoyifei1011/GetStoreApp/blob/master/Description/StudyReferenceCode.md) 
Expand Down
4 changes: 2 additions & 2 deletions Description/README_ZH-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@

### 项目引用(按英文首字母排序)

> * [Aira2](https://aria2.github.io) 
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL) 
> * [Microsoft.WindowsAppSDK](https://github.com/microsoft/windowsappsdk) 
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL) 
> * [Mile.Aria2](https://github.com/ProjectMile/Mile.Aria2) 
> * [Mile.Xaml](https://github.com/ProjectMile/Mile.Xaml) 
[学习过程中参考或使用的代码](https://github.com/Gaoyifei1011/GetStoreApp/blob/master/Description/StudyReferenceCode.md) 
Expand Down
Binary file removed GetStoreApp/Aria2/Aria2cARM64.exe
Binary file not shown.
Binary file removed GetStoreApp/Aria2/Aria2cX64.exe
Binary file not shown.
Binary file removed GetStoreApp/Aria2/Aria2cX86.exe
Binary file not shown.
Binary file added GetStoreApp/Aria2/Mile.Aria2.ARM64.exe
Binary file not shown.
Binary file added GetStoreApp/Aria2/Mile.Aria2.X64.exe
Binary file not shown.
Binary file added GetStoreApp/Aria2/Mile.Aria2.X86.exe
Binary file not shown.
10 changes: 5 additions & 5 deletions GetStoreApp/GetStoreApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<EnableMsixTooling>false</EnableMsixTooling>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<FileAlignment>512</FileAlignment>
<FileVersion>1.4.323.0</FileVersion>
<FileVersion>1.4.405.0</FileVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
Expand Down Expand Up @@ -43,7 +43,7 @@
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
<TrimMode>partial</TrimMode>
<Version>1.4.323.0</Version>
<Version>1.4.405.0</Version>
<UseWindowsForms>False</UseWindowsForms>
<UseWinUI>true</UseWinUI>
<UseWPF>False</UseWPF>
Expand Down Expand Up @@ -91,17 +91,17 @@
<Content Include="Aria2\Aria2c.conf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Aria2\Aria2cARM64.exe" Link="Aria2\Aria2c.exe">
<Content Include="Aria2\Mile.Aria2.ARM64.exe" Link="Aria2\Mile.Aria2.exe">
<CopyToOutputDirectory Condition="'$(Platform)'=='x86'">Never</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='x64'">Never</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='ARM64'">Always</CopyToOutputDirectory>
</Content>
<Content Include="Aria2\Aria2cX64.exe" Link="Aria2\Aria2c.exe">
<Content Include="Aria2\Mile.Aria2.X64.exe" Link="Aria2\Mile.Aria2.exe">
<CopyToOutputDirectory Condition="'$(Platform)'=='x86'">Never</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='x64'">Always</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='ARM64'">Never</CopyToOutputDirectory>
</Content>
<Content Include="Aria2\Aria2cX86.exe" Link="Aria2\Aria2c.exe">
<Content Include="Aria2\Mile.Aria2.X86.exe" Link="Aria2\Mile.Aria2.exe">
<CopyToOutputDirectory Condition="'$(Platform)'=='x86'">Always</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='x64'">Never</CopyToOutputDirectory>
<CopyToOutputDirectory Condition="'$(Platform)'=='ARM64'">Never</CopyToOutputDirectory>
Expand Down
4 changes: 2 additions & 2 deletions GetStoreApp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// 生成号
// 修订号
//
[assembly: AssemblyVersion("1.4.323.0")]
[assembly: AssemblyFileVersion("1.4.323.0")]
[assembly: AssemblyVersion("1.4.405.0")]
[assembly: AssemblyFileVersion("1.4.405.0")]
2 changes: 1 addition & 1 deletion GetStoreApp/Services/Controls/Download/Aria2Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace GetStoreApp.Services.Controls.Download
/// </summary>
public static class Aria2Service
{
private static string Aria2FilePath { get; } = string.Format(@"{0}\{1}", InfoHelper.GetAppInstalledLocation(), @"Aria2\Aria2c.exe");
private static string Aria2FilePath { get; } = string.Format(@"{0}\{1}", InfoHelper.GetAppInstalledLocation(), @"Aria2\Mile.Aria2.exe");

private static string DefaultAria2ConfPath { get; } = string.Format(@"{0}\{1}", InfoHelper.GetAppInstalledLocation(), @"Aria2\Aria2c.conf");

Expand Down
2 changes: 1 addition & 1 deletion GetStoreApp/Services/Shell/DownloadService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private static unsafe void DownloadFile(string fileLink)
null,
string.Format(
@"{0}\{1} --file-allocation=none -d ""{2}"" ""{3}""",
InfoHelper.GetAppInstalledLocation(), @"Aria2\Aria2c.exe",
InfoHelper.GetAppInstalledLocation(), @"Aria2\Mile.Aria2.exe",
DownloadOptionsService.DownloadFolder.Path, fileLink
),
IntPtr.Zero,
Expand Down
2 changes: 2 additions & 0 deletions GetStoreApp/Styles/Expander.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,15 @@
</Setter>
</Style>

<!-- 关于页面的扩展器格式 -->
<Style x:Key="ExpanderAboutStyle" TargetType="Expander">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="IsExpanded" Value="True" />
<Setter Property="Padding" Value="16,5,0,5" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>

<!-- 设置页面的扩展器格式 -->
<Style x:Key="ExpanderSettingsStyle" TargetType="Expander">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="IsExpanded" Value="True" />
Expand Down
6 changes: 3 additions & 3 deletions GetStoreApp/ViewModels/Controls/About/ReferenceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public sealed class ReferenceViewModel
//项目引用信息
public Dictionary<string, string> ReferenceDict { get; } = new Dictionary<string, string>
{
{"Aira2","https://aria2.github.io" },
{"Microsoft.Windows.SDK.Contracts","https://aka.ms/WinSDKProjectURL" },
{"Microsoft.WindowsAppSDK","https://github.com/microsoft/windowsappsdk" },
{"Mile.Xaml","https://github.com/ProjectMile/Mile.Xaml" },
{"Microsoft.Windows.SDK.Contracts","https://aka.ms/WinSDKProjectURL" },
{"Mile.Aria2","https://github.com/ProjectMile/Mile.Aria2" },
{"Mile.Xaml","https://github.com/ProjectMile/Mile.Xaml" }
};
}
}
2 changes: 1 addition & 1 deletion GetStoreAppHelper/GetStoreAppHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<DisableXbfLineInfo>False</DisableXbfLineInfo>
<EnableTypeInfoReflection>true</EnableTypeInfoReflection>
<FileAlignment>512</FileAlignment>
<FileVersion>1.4.323.0</FileVersion>
<FileVersion>1.4.405.0</FileVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>latest</LangVersion>
<OutputType>WinExe</OutputType>
Expand Down
4 changes: 2 additions & 2 deletions GetStoreAppHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// 生成号
// 修订号
//
[assembly: AssemblyVersion("1.4.323.0")]
[assembly: AssemblyFileVersion("1.4.323.0")]
[assembly: AssemblyVersion("1.4.405.0")]
[assembly: AssemblyFileVersion("1.4.405.0")]
6 changes: 3 additions & 3 deletions GetStoreAppPackage/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="Gaoyifei1011.GetStoreApp"
Publisher="CN=高怡飞"
Version="1.4.323.0" />
Version="1.4.405.0" />

<Properties>
<DisplayName>ms-resource:PackageDisplayName</DisplayName>
Expand Down Expand Up @@ -90,9 +90,9 @@
</Applications>

<Extensions>
<!--aria2c.exe进程预定义的防火墙规则-->
<!--Mile.Aria2.exe进程预定义的防火墙规则-->
<desktop2:Extension Category="windows.firewallRules">
<desktop2:FirewallRules Executable="Aria2/Aria2c.exe">
<desktop2:FirewallRules Executable="Aria2/Mile.Aria2.exe">
<desktop2:Rule Direction="in" IPProtocol="TCP" Profile="all"/>
<desktop2:Rule Direction="in" IPProtocol="UDP" Profile="all"/>
</desktop2:FirewallRules>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@

### 项目引用(按英文首字母排序)

> * [Aira2](https://aria2.github.io)&emsp;
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL)&emsp;
> * [Microsoft.WindowsAppSDK](https://github.com/microsoft/windowsappsdk)&emsp;
> * [Microsoft.Windows.SDK.Contracts](https://aka.ms/WinSDKProjectURL)&emsp;
> * [Mile.Aria2](https://github.com/ProjectMile/Mile.Aria2)&emsp;
> * [Mile.Xaml](https://github.com/ProjectMile/Mile.Xaml)&emsp;
[学习过程中参考或使用的代码](https://github.com/Gaoyifei1011/GetStoreApp/blob/master/Description/StudyReferenceCode.md)&emsp;
Expand Down

0 comments on commit f552866

Please sign in to comment.