Skip to content

Commit 497c300

Browse files
authored
Merge pull request #37 from boriel-basic/features/installer
Features/installer
2 parents db8bbc2 + 66640d2 commit 497c300

45 files changed

Lines changed: 3044 additions & 25 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MsBox.Avalonia/MsBox.Avalonia.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<AvaloniaResource Include="Assets\*" />
2727
</ItemGroup>
2828
<ItemGroup>
29-
<PackageReference Include="Avalonia" Version="11.3.7" />
29+
<PackageReference Include="Avalonia" Version="11.3.11" />
3030
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.3.0" />
31-
<PackageReference Include="DialogHost.Avalonia" Version="0.9.3" />
31+
<PackageReference Include="DialogHost.Avalonia" Version="0.10.4" />
3232
<PackageReference Include="Markdown.Avalonia.Tight" Version="11.0.2" />
3333
</ItemGroup>
3434
<ItemGroup>
2.11 KB
Loading
2.11 KB
Loading
469 KB
Loading
15.3 KB
Loading
67.2 KB
Loading
17.6 KB
Loading
17.3 KB
Loading

ZXBSInstaller.Log/Neg/Config.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace ZXBSInstaller.Log.Neg
8+
{
9+
/// <summary>
10+
/// Config for ZXBSInstaller
11+
/// </summary>
12+
public class Config
13+
{
14+
/// <summary>
15+
/// URL where to download the tools list
16+
/// </summary>
17+
public string ToolsListURL { get; set; }
18+
/// <summary>
19+
/// Base path installation for tools
20+
/// </summary>
21+
public string BasePath { get; set; }
22+
/// <summary>
23+
/// Show only stable versions (no beta)
24+
/// </summary>
25+
public bool OnlyStableVersions { get; set; }
26+
/// <summary>
27+
/// Setup ZXBS config when install/update apps
28+
/// </summary>
29+
public bool SetZXBSConfig { get; set; }
30+
/// <summary>
31+
/// Local paths for external tools
32+
/// </summary>
33+
public List<ExternalTools_Path> ExternalTools_Paths { get; set; }
34+
}
35+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace ZXBSInstaller.Log.Neg
9+
{
10+
/// <summary>
11+
/// External tool definition for installer and updater
12+
/// </summary>
13+
public class ExternalTool
14+
{
15+
/// <summary>
16+
/// Internal unique identifier
17+
/// </summary>
18+
public string Id { get; set; }
19+
/// <summary>
20+
/// The tools is visible/enabled
21+
/// </summary>
22+
public bool Enabled { get; set; }
23+
/// <summary>
24+
/// Display name of the tool
25+
/// </summary>
26+
public string Name { get; set; }
27+
/// <summary>
28+
/// Author of the tool
29+
/// </summary>
30+
public string Author { get; set; }
31+
/// <summary>
32+
/// Description of the tool
33+
/// </summary>
34+
public string Description { get; set; }
35+
/// <summary>
36+
/// Operating systems supported by the tool
37+
/// </summary>
38+
public OperatingSystems[] SupportedOperatingSystems { get; set; }
39+
/// <summary>
40+
/// Site of the tool
41+
/// </summary>
42+
public string SiteUrl { get; set; }
43+
/// <summary>
44+
/// Licence type of the tool
45+
/// </summary>
46+
public string LicenseType { get; set; }
47+
/// <summary>
48+
/// Lucence URL of the tool
49+
/// </summary>
50+
public string LicenceUrl { get; set; }
51+
/// <summary>
52+
/// Url with the versions info
53+
/// </summary>
54+
public string VersionsUrl { get; set; }
55+
/// <summary>
56+
/// Local path where the tool will be installed without file name
57+
/// </summary>
58+
public string LocalPath { get; set; }
59+
/// <summary>
60+
/// Local path where the tool will be installed with file name
61+
/// </summary>
62+
public string FullLocalPath { get; set; }
63+
/// <summary>
64+
/// If this is true, the tool will be updated from ZXBSInstaller
65+
/// </summary>
66+
public bool DirectUpdate { get; set; }
67+
/// <summary>
68+
/// Order in the list
69+
/// </summary>
70+
public int Order { get; set; }
71+
/// <summary>
72+
/// Recommended
73+
/// </summary>
74+
public bool Recommended { get; set; }
75+
76+
/// <summary>
77+
/// Versions of the tool
78+
/// </summary>
79+
[JsonIgnore]
80+
public ExternalTools_Version[] Versions { get; set; }
81+
/// <summary>
82+
/// Version installed on local computer
83+
/// </summary>
84+
[JsonIgnore]
85+
public ExternalTools_Version InstalledVersion { get; set; }
86+
/// <summary>
87+
/// Latest available version
88+
/// </summary>
89+
[JsonIgnore]
90+
public ExternalTools_Version LatestVersion { get; set; }
91+
/// <summary>
92+
/// Need to update
93+
/// </summary>
94+
[JsonIgnore]
95+
public bool UpdateNeeded { get; set; }
96+
97+
/// <summary>
98+
/// Is selected for install
99+
/// </summary>
100+
[JsonIgnore]
101+
public bool IsSelected { get; set; }
102+
103+
}
104+
}

0 commit comments

Comments
 (0)