Skip to content

Commit bd3275d

Browse files
committed
添加nuget打包说明
1 parent 39b7acc commit bd3275d

File tree

10 files changed

+136
-51
lines changed

10 files changed

+136
-51
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ MAUI GeneralUpdate.Maui
3535

3636
- https://gitee.com/GeneralTeam/GeneralUpdate-Samples
3737

38+
39+
3840
功能介绍:
3941

4042
| 功能 | 是否支持 | 备注 |

src/c#/GeneralUpdate.Bowl/GeneralUpdate.Bowl.csproj

Lines changed: 55 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,70 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<LangVersion>12</LangVersion>
5+
<LangVersion>default</LangVersion>
66
<Nullable>enable</Nullable>
7+
<Description>Bowl is used to monitor whether the main program can start normally after an upgrade. If it detects that the main program crashes on startup, it will restore the backup.</Description>
8+
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
9+
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate</PackageProjectUrl>
10+
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
11+
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate</RepositoryUrl>
12+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
13+
<Title>GeneralUpdate.Bowl</Title>
14+
<Authors>JusterZhu</Authors>
15+
<RepositoryType>public</RepositoryType>
16+
<PackageTags>upgrade</PackageTags>
17+
<PackageReleaseNotes>Bowl is used to monitor whether the main program can start normally after an upgrade. If it detects that the main program crashes on startup, it will restore the backup.</PackageReleaseNotes>
18+
<PackageIcon>bowl.jpeg</PackageIcon>
19+
<Version>1.0.4</Version>
720
</PropertyGroup>
8-
21+
922
<ItemGroup>
10-
<None Update="Applications\Windows\procdump.exe">
11-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
12-
</None>
13-
<None Update="Applications\Windows\procdump64.exe">
14-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
15-
</None>
16-
<None Update="Applications\Windows\procdump64a.exe">
17-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
18-
</None>
19-
<None Update="Applications\Linux\procdump-3.3.0-0.cm2.x86_64.rpm">
20-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
21-
</None>
22-
<None Update="Applications\Linux\procdump-3.3.0-0.el8.x86_64.rpm">
23-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
24-
</None>
25-
<None Update="Applications\Linux\procdump_3.3.0_amd64.deb">
26-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27-
</None>
28-
<None Update="Applications\Windows\export.bat">
29-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
30-
</None>
23+
<None Update="bowl.jpeg">
24+
<Pack>True</Pack>
25+
<PackagePath></PackagePath>
26+
</None>
27+
<None Update="Applications\Linux\procdump-3.3.0-0.cm2.x86_64.rpm">
28+
<Pack>True</Pack>
29+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
30+
</None>
31+
<None Update="Applications\Linux\procdump-3.3.0-0.el8.x86_64.rpm">
32+
<Pack>True</Pack>
33+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
34+
</None>
35+
<None Update="Applications\Linux\procdump_3.3.0_amd64.deb">
36+
<Pack>True</Pack>
37+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
38+
</None>
3139
</ItemGroup>
3240

3341
<ItemGroup>
3442
<PackageReference Include="System.Text.Json" Version="9.0.0" />
3543
</ItemGroup>
36-
44+
3745
<ItemGroup>
3846
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj" />
3947
</ItemGroup>
40-
48+
49+
<ItemGroup>
50+
<None Remove="Applications\Windows\export.bat" />
51+
<EmbeddedResource Include="Applications\Windows\export.bat">
52+
<Pack>True</Pack>
53+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
54+
</EmbeddedResource>
55+
<None Remove="Applications\Windows\procdump.exe" />
56+
<EmbeddedResource Include="Applications\Windows\procdump.exe">
57+
<Pack>True</Pack>
58+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
59+
</EmbeddedResource>
60+
<None Remove="Applications\Windows\procdump64.exe" />
61+
<EmbeddedResource Include="Applications\Windows\procdump64.exe">
62+
<Pack>True</Pack>
63+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
64+
</EmbeddedResource>
65+
<None Remove="Applications\Windows\procdump64a.exe" />
66+
<EmbeddedResource Include="Applications\Windows\procdump64a.exe">
67+
<Pack>True</Pack>
68+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
69+
</EmbeddedResource>
70+
</ItemGroup>
4171
</Project>
100 KB
Loading

src/c#/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<Version>2.12.10</Version>
6-
<Authors>juster.zhu</Authors>
6+
<Authors>JusterZhu</Authors>
77
<Description>Provides functions related to upgrade and update programs.</Description>
88
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
9-
<PackageIcon>GeneralUpdate128.png</PackageIcon>
9+
<PackageIcon>GeneralUpdate.ico</PackageIcon>
1010
<SignAssembly>False</SignAssembly>
11-
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
12-
<RepositoryUrl>https://github.com/JusterZhu/GeneralUpdate</RepositoryUrl>
13-
<Copyright>Copyright © 2024</Copyright>
11+
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate</RepositoryUrl>
12+
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
1413
<PackageReleaseNotes>Provides high-performance, low-loss, resume-breakpoint, version-by-version update, binary differential update, incremental update function, configuration file retention update and other features</PackageReleaseNotes>
1514
<PackageProjectUrl>https://github.com/JusterZhu/GeneralUpdate</PackageProjectUrl>
16-
<LangVersion>12</LangVersion>
15+
<LangVersion>default</LangVersion>
1716
<Nullable>enable</Nullable>
17+
<Title>GeneralUpdate.ClientCore</Title>
18+
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
19+
<RepositoryType>public</RepositoryType>
20+
<PackageTags>upgrade</PackageTags>
21+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1822
</PropertyGroup>
1923

2024
<ItemGroup>
@@ -30,7 +34,10 @@
3034
</ItemGroup>
3135

3236
<ItemGroup>
33-
<None Remove="GeneralUpdate.ico" />
37+
<None Update="GeneralUpdate.ico">
38+
<Pack>True</Pack>
39+
<PackagePath></PackagePath>
40+
</None>
3441
</ItemGroup>
3542

3643
</Project>
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<LangVersion>12</LangVersion>
4+
<LangVersion>default</LangVersion>
55
<Nullable>enable</Nullable>
66
<TargetFramework>netstandard2.0</TargetFramework>
7+
<Title>GeneralUpdate.Common</Title>
8+
<Authors>JusterZhu</Authors>
9+
<Description>The infrastructure required to support all components is necessary, and this nuget package is essential.</Description>
10+
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
11+
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate</PackageProjectUrl>
12+
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
13+
<PackageIcon>GeneralUpdate128.png</PackageIcon>
14+
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate</RepositoryUrl>
15+
<RepositoryType>public</RepositoryType>
16+
<PackageTags>upgrade</PackageTags>
17+
<PackageReleaseNotes>The infrastructure required to support all components is necessary, and this nuget package is essential.</PackageReleaseNotes>
18+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
19+
<Version>2.0.0</Version>
720
</PropertyGroup>
821

922
<ItemGroup>
1023
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
1124
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
1225
<PackageReference Include="System.Text.Json" Version="9.0.0" />
1326
</ItemGroup>
27+
28+
<ItemGroup>
29+
<None Include="..\..\..\imgs\GeneralUpdate.ico">
30+
<Pack>True</Pack>
31+
<PackagePath></PackagePath>
32+
<Link>GeneralUpdate.ico</Link>
33+
</None>
34+
<None Update="GeneralUpdate128.png">
35+
<Pack>True</Pack>
36+
<PackagePath></PackagePath>
37+
</None>
38+
</ItemGroup>
1439
</Project>
19.1 KB
Loading

src/c#/GeneralUpdate.Core/GeneralUpdate.Core.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,33 @@
44
<OutputType>Library</OutputType>
55
<PackageId>$(AssemblyName)</PackageId>
66
<Version>4.14.21</Version>
7-
<Authors>juster.zhu</Authors>
7+
<Authors>JusterZhu</Authors>
88
<Company>juster.zhu</Company>
99
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1010
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
11-
<PackageIcon>GeneralUpdate128.png</PackageIcon>
12-
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
13-
<Copyright>Copyright © 2024</Copyright>
11+
<PackageIcon>GeneralUpdate.ico</PackageIcon>
12+
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
1413
<Description>This section describes how to upgrade client applications.</Description>
1514
<PackageReleaseNotes>Provides high-performance, low-loss, resume-breakpoint, version-by-version update, binary differential update, incremental update function, configuration file retention update and other features.</PackageReleaseNotes>
1615
<RepositoryUrl>https://github.com/JusterZhu/GeneralUpdate</RepositoryUrl>
1716
<AssemblyName>GeneralUpdate.Core</AssemblyName>
1817
<RootNamespace>GeneralUpdate.Core</RootNamespace>
19-
<PackageProjectUrl>https://github.com/JusterZhu/GeneralUpdate</PackageProjectUrl>
20-
<LangVersion>12</LangVersion>
18+
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate</PackageProjectUrl>
19+
<LangVersion>default</LangVersion>
2120
<Nullable>enable</Nullable>
21+
<Title>GeneralUpdate.Core</Title>
22+
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
23+
<RepositoryType>public</RepositoryType>
24+
<PackageTags>upgrade</PackageTags>
25+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2226
</PropertyGroup>
2327
<ItemGroup>
2428
<ProjectReference Include="..\GeneralUpdate.Differential\GeneralUpdate.Differential.csproj" />
2529
</ItemGroup>
2630
<ItemGroup>
27-
<None Remove="GeneralUpdate.ico" />
31+
<None Update="GeneralUpdate.ico">
32+
<Pack>True</Pack>
33+
<PackagePath></PackagePath>
34+
</None>
2835
</ItemGroup>
2936
</Project>

src/c#/GeneralUpdate.Differential/GeneralUpdate.Differential.csproj

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,32 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
6-
<PackageIcon>GeneralUpdate128.png</PackageIcon>
6+
<PackageIcon>GeneralUpdate.ico</PackageIcon>
77
<RepositoryUrl>https://github.com/JusterZhu/GeneralUpdate</RepositoryUrl>
88
<Description>The binary differential update function is provided, but the configuration file update function is reserved.</Description>
9-
<Authors>juster.zhu</Authors>
9+
<Authors>JusterZhu</Authors>
1010
<Version>1.4.3</Version>
11-
<PackageProjectUrl>https://github.com/JusterZhu/GeneralUpdate</PackageProjectUrl>
12-
<Copyright>Copyright © 2023</Copyright>
13-
<LangVersion>12</LangVersion>
11+
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate</PackageProjectUrl>
12+
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
13+
<LangVersion>default</LangVersion>
1414
<Nullable>enable</Nullable>
15+
<Title>GeneralUpdate.Differential</Title>
16+
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
17+
<RepositoryType>public</RepositoryType>
18+
<PackageTags>upgrade</PackageTags>
19+
<PackageReleaseNotes>The binary differential update function is provided, but the configuration file update function is reserved.</PackageReleaseNotes>
20+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1521
</PropertyGroup>
1622

1723
<ItemGroup>
1824
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj" />
1925
</ItemGroup>
2026

2127
<ItemGroup>
22-
<None Remove="GeneralUpdate.ico" />
28+
<None Update="GeneralUpdate.ico">
29+
<Pack>True</Pack>
30+
<PackagePath></PackagePath>
31+
</None>
2332
</ItemGroup>
2433

2534
</Project>

src/c#/Generalupdate.CatBowl/Generalupdate.CatBowl.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99

1010
<ItemGroup>
1111
<ProjectReference Include="..\GeneralUpdate.Bowl\GeneralUpdate.Bowl.csproj" />
12-
<ProjectReference Include="..\GeneralUpdate.Differential\GeneralUpdate.Differential.csproj" />
1312
</ItemGroup>
1413

14+
<Target Name="AppFiles" AfterTargets="Build">
15+
<ItemGroup>
16+
<ExeFiles Include="$(MSBuildThisFileDirectory)Applications\Windows\*.exe" />
17+
<BatFiles Include="$(MSBuildThisFileDirectory)Applications\Windows\*.bat" />
18+
</ItemGroup>
19+
<Copy SourceFiles="@(AppFiles)" DestinationFolder="$(OutputPath)" />
20+
</Target>
21+
1522
</Project>

src/c#/Generalupdate.CatBowl/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
using System.Text;
22
using GeneralUpdate.Bowl;
33
using GeneralUpdate.Bowl.Strategys;
4-
using GeneralUpdate.Common.Compress;
5-
using GeneralUpdate.Common.Shared.Object;
64

75
namespace Generalupdate.CatBowl;
86

97
class Program
108
{
119
static void Main(string[] args)
1210
{
13-
/*var installPath = @"D:\github_project\GeneralUpdate\src\c#\GeneralUpdate.CatBowl\bin\Debug\net8.0\";
11+
var installPath = AppDomain.CurrentDomain.BaseDirectory;
1412
var lastVersion = "1.0.0.3";
1513
var processInfo = new MonitorParameter
1614
{
@@ -22,7 +20,7 @@ static void Main(string[] args)
2220
BackupDirectory = Path.Combine(installPath, lastVersion),
2321
WorkModel = "Normal"
2422
};
25-
Bowl.Launch(processInfo);*/
23+
Bowl.Launch(processInfo);
2624

2725
/*var source = @"D:\packet\release";
2826
var target = @"D:\packet\1.zip";

0 commit comments

Comments
 (0)