Skip to content

Commit fc2d323

Browse files
JusterZhugitee-org
authored andcommitted
!61 Dev
Merge pull request !61 from Juster Zhu/dev
2 parents 9a60bb5 + cc167c7 commit fc2d323

File tree

12 files changed

+54
-36
lines changed

12 files changed

+54
-36
lines changed

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

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,17 @@
1313
<Title>GeneralUpdate.Bowl</Title>
1414
<Authors>JusterZhu</Authors>
1515
<RepositoryType>public</RepositoryType>
16-
<PackageTags>upgrade</PackageTags>
16+
<PackageTags>upgrade,update</PackageTags>
1717
<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>
1818
<PackageIcon>bowl.jpeg</PackageIcon>
19-
<Version>1.0.4</Version>
19+
<Version>9.0.0</Version>
2020
</PropertyGroup>
2121

2222
<ItemGroup>
2323
<None Update="bowl.jpeg">
2424
<Pack>True</Pack>
2525
<PackagePath></PackagePath>
2626
</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>
3927
</ItemGroup>
4028

4129
<ItemGroup>
@@ -45,10 +33,12 @@
4533
<ItemGroup>
4634
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj" />
4735
</ItemGroup>
48-
36+
37+
4938
<ItemGroup>
50-
<EmbeddedResource Include="Applications\**\*">
39+
<Content Include="Applications\**\*">
5140
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
52-
</EmbeddedResource>
41+
<PackageCopyToOutput>true</PackageCopyToOutput>
42+
</Content>
5343
</ItemGroup>
5444
</Project>

src/c#/GeneralUpdate.Bowl/Strategys/WindowStrategy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public override void Launch()
2121
_parameter.InnerApp = Path.Combine(_applicationsDirectory, GetAppName());
2222
var dmpFullName = Path.Combine(_parameter.FailDirectory, _parameter.DumpFileName);
2323
_parameter.InnerArguments = $"-e -ma {_parameter.ProcessNameOrId} {dmpFullName}";
24+
//This method is used to launch scripts in applications.
2425
base.Launch();
2526
ExecuteFinalTreatment();
2627
}

src/c#/GeneralUpdate.Client/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class Program
1414
{
1515
static async Task Main(string[] args)
1616
{
17-
/*try
17+
try
1818
{
1919
Console.WriteLine($"主程序初始化,{DateTime.Now}!");
2020
Console.WriteLine("当前运行目录:" + Thread.GetDomain().BaseDirectory);
@@ -57,7 +57,7 @@ static async Task Main(string[] args)
5757
catch (Exception e)
5858
{
5959
Console.WriteLine(e.Message + "\n" + e.StackTrace);
60-
}*/
60+
}
6161

6262
/*var paramsOSS = new GlobalConfigInfoOSS();
6363
paramsOSS.Url = "http://192.168.50.203/versions.json";

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>2.12.10</Version>
5+
<Version>9.0.0</Version>
66
<Authors>JusterZhu</Authors>
77
<Description>Provides functions related to upgrade and update programs.</Description>
88
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
9-
<PackageIcon>GeneralUpdate.ico</PackageIcon>
9+
<PackageIcon>GeneralUpdate.png</PackageIcon>
1010
<SignAssembly>False</SignAssembly>
1111
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate</RepositoryUrl>
1212
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
@@ -17,7 +17,7 @@
1717
<Title>GeneralUpdate.ClientCore</Title>
1818
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
1919
<RepositoryType>public</RepositoryType>
20-
<PackageTags>upgrade</PackageTags>
20+
<PackageTags>upgrade,update</PackageTags>
2121
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2222
</PropertyGroup>
2323

@@ -40,4 +40,11 @@
4040
</None>
4141
</ItemGroup>
4242

43+
<ItemGroup>
44+
<None Update="GeneralUpdate.png">
45+
<Pack>True</Pack>
46+
<PackagePath></PackagePath>
47+
</None>
48+
</ItemGroup>
49+
4350
</Project>
15.9 KB
Loading

src/c#/GeneralUpdate.Common/GeneralUpdate.Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<PackageIcon>GeneralUpdate128.png</PackageIcon>
1414
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate</RepositoryUrl>
1515
<RepositoryType>public</RepositoryType>
16-
<PackageTags>upgrade</PackageTags>
16+
<PackageTags>upgrade,update</PackageTags>
1717
<PackageReleaseNotes>The infrastructure required to support all components is necessary, and this nuget package is essential.</PackageReleaseNotes>
1818
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
19-
<Version>2.0.0</Version>
19+
<Version>9.0.0</Version>
2020
</PropertyGroup>
2121

2222
<ItemGroup>

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<OutputType>Library</OutputType>
55
<PackageId>$(AssemblyName)</PackageId>
6-
<Version>4.14.21</Version>
6+
<Version>9.0.0</Version>
77
<Authors>JusterZhu</Authors>
88
<Company>juster.zhu</Company>
99
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1010
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
11-
<PackageIcon>GeneralUpdate.ico</PackageIcon>
11+
<PackageIcon>GeneralUpdate.png</PackageIcon>
1212
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
1313
<Description>This section describes how to upgrade client applications.</Description>
1414
<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>
@@ -21,7 +21,7 @@
2121
<Title>GeneralUpdate.Core</Title>
2222
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
2323
<RepositoryType>public</RepositoryType>
24-
<PackageTags>upgrade</PackageTags>
24+
<PackageTags>upgrade,update</PackageTags>
2525
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2626
</PropertyGroup>
2727
<ItemGroup>
@@ -33,4 +33,10 @@
3333
<PackagePath></PackagePath>
3434
</None>
3535
</ItemGroup>
36+
<ItemGroup>
37+
<None Update="GeneralUpdate.png">
38+
<Pack>True</Pack>
39+
<PackagePath></PackagePath>
40+
</None>
41+
</ItemGroup>
3642
</Project>
15.9 KB
Loading

src/c#/GeneralUpdate.Core/Strategys/WindowsStrategy.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,18 @@ public override void StartApp()
9999
{
100100
try
101101
{
102-
var appBowlPath = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? null : CheckPath(_configinfo.InstallPath, _configinfo.Bowl);
103-
var appPath = string.IsNullOrWhiteSpace(appBowlPath) ? CheckPath(_configinfo.InstallPath, _configinfo.MainAppName) : appBowlPath;
104-
if(string.IsNullOrEmpty(appPath))
105-
throw new Exception($"Can't find the app {appPath}!");
102+
var mainAppPath = CheckPath(_configinfo.InstallPath, _configinfo.MainAppName);
103+
if (string.IsNullOrEmpty(mainAppPath))
104+
throw new Exception($"Can't find the app {mainAppPath}!");
106105

107-
Process.Start(appPath);
106+
Process.Start(mainAppPath);
107+
108+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
109+
{
110+
var bowlAppPath = CheckPath(_configinfo.InstallPath, _configinfo.Bowl);
111+
if (!string.IsNullOrEmpty(bowlAppPath))
112+
Process.Start(bowlAppPath);
113+
}
108114
}
109115
catch (Exception e)
110116
{

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<ApplicationIcon>GeneralUpdate.ico</ApplicationIcon>
6-
<PackageIcon>GeneralUpdate.ico</PackageIcon>
6+
<PackageIcon>GeneralUpdate.png</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>
99
<Authors>JusterZhu</Authors>
10-
<Version>1.4.3</Version>
10+
<Version>9.0.0</Version>
1111
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate</PackageProjectUrl>
1212
<Copyright>Copyright © 2024 JusterZhu. All rights reserved.</Copyright>
1313
<LangVersion>default</LangVersion>
1414
<Nullable>enable</Nullable>
1515
<Title>GeneralUpdate.Differential</Title>
1616
<PackageLicenseUrl>https://github.com/GeneralLibrary/GeneralUpdate?tab=MIT-1-ov-file#readme</PackageLicenseUrl>
1717
<RepositoryType>public</RepositoryType>
18-
<PackageTags>upgrade</PackageTags>
18+
<PackageTags>upgrade,update</PackageTags>
1919
<PackageReleaseNotes>The binary differential update function is provided, but the configuration file update function is reserved.</PackageReleaseNotes>
2020
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2121
</PropertyGroup>
@@ -31,4 +31,11 @@
3131
</None>
3232
</ItemGroup>
3333

34+
<ItemGroup>
35+
<None Update="GeneralUpdate.png">
36+
<Pack>True</Pack>
37+
<PackagePath></PackagePath>
38+
</None>
39+
</ItemGroup>
40+
3441
</Project>

0 commit comments

Comments
 (0)