allow local folders as packagesource

This commit is contained in:
Pilzinsel64
2024-08-30 09:31:44 +02:00
parent 638cbb7b2c
commit 6cd7171819
5 changed files with 70 additions and 27 deletions

View File

@@ -1,9 +1,16 @@
namespace Pilz.Updating;
using Newtonsoft.Json;
public class UpdatePackageInfo(AppVersion version, string packagelink)
namespace Pilz.Updating;
public class UpdatePackageInfo(AppVersion version, string address)
{
public string? Name { get; set; }
public AppVersion Version { get; set; } = version;
public UpdateNotes Notes { get; } = new();
public string Packagelink { get; set; } = packagelink;
public string Address { get; set; } = address;
public PackageAddressType AddressType { get; set; }
public PackageType Type { get; set; }
[Obsolete, JsonProperty]
private string Packagelink => Address;
}