Skip to content

Commit 72a5f50

Browse files
author
Juan Segura
committed
v0.0.1-beta1
1 parent db8bbc2 commit 72a5f50

35 files changed

Lines changed: 2446 additions & 25 deletions

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>
17.6 KB
Loading
17.3 KB
Loading

ZXBSInstaller.Log/Neg/Config.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
/// Local paths for external tools
28+
/// </summary>
29+
public List<ExternalTools_Path> ExternalTools_Paths { get; set; }
30+
}
31+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
/// Versions of the tool
65+
/// </summary>
66+
[JsonIgnore]
67+
public ExternalTools_Version[] Versions { get; set; }
68+
/// <summary>
69+
/// If this is true, the tool will be updated from ZXBSInstaller
70+
/// </summary>
71+
public bool DirectUpdate { get; set; }
72+
/// <summary>
73+
/// Order in the list
74+
/// </summary>
75+
public int Order { get; set; }
76+
}
77+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
/// Defines the local path for external tools
11+
/// </summary>
12+
public class ExternalTools_Path
13+
{
14+
/// <summary>
15+
/// External tool unique identifier
16+
/// </summary>
17+
public string Id { get; set; }
18+
/// <summary>
19+
/// Local path where the tool will be installed without file name
20+
/// </summary>
21+
public string LocalPath { get; set; }
22+
}
23+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
namespace ZXBSInstaller.Log.Neg
2+
{
3+
/// <summary>
4+
/// Download data and version info for external tool
5+
/// </summary>
6+
public class ExternalTools_Version
7+
{
8+
/// <summary>
9+
/// Display version for this version
10+
/// </summary>
11+
public string Version { get; set; }
12+
/// <summary>
13+
/// Numer of the Beta version, 0 if not a beta
14+
/// </summary>
15+
public int BetaNumber { get; set; }
16+
/// <summary>
17+
/// Internal version number to order versions
18+
/// </summary>
19+
public int VersionNumber { get; set; }
20+
/// <summary>
21+
/// Download url for this version
22+
/// </summary>
23+
public string DownloadUrl { get; set; }
24+
/// <summary>
25+
/// Operating system for this version
26+
/// </summary>
27+
public OperatingSystems OperatingSystem { get; set; }
28+
}
29+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace ZXBSInstaller.Log.Neg
2+
{
3+
/// <summary>
4+
/// Operating System of the external tools
5+
/// </summary>
6+
public enum OperatingSystems
7+
{
8+
All = 0,
9+
Windows = 1,
10+
Linux = 2,
11+
MacOS = 3
12+
}
13+
}

0 commit comments

Comments
 (0)