legacy support
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>4.3.0</Version>
|
||||
<Version>4.3.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -15,7 +15,7 @@ public class UpdatePackageInfo(AppVersion version)
|
||||
|
||||
public string? ExePath { get; set; }
|
||||
|
||||
public Dictionary<string, PackageSource> Packages = [];
|
||||
public Dictionary<string, PackageSource> Packages { get; } = [];
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public UpdateType UpdateType { get; set; }
|
||||
@@ -37,4 +37,41 @@ public class UpdatePackageInfo(AppVersion version)
|
||||
.Replace("{build}", Version.Build.ToString())
|
||||
;
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[JsonProperty]
|
||||
private string Address
|
||||
{
|
||||
set
|
||||
{
|
||||
if (Packages.Count == 0)
|
||||
Packages.Add(null!, new(value));
|
||||
else
|
||||
Packages.First().Value.Address = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
private PackageAddressType AddressType
|
||||
{
|
||||
set
|
||||
{
|
||||
if (Packages.Count == 0)
|
||||
Packages.Add(null!, new(string.Empty));
|
||||
Packages.First().Value.AddressType = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
private PackageType PackageType
|
||||
{
|
||||
set
|
||||
{
|
||||
if (Packages.Count == 0)
|
||||
Packages.Add(null!, new(string.Empty));
|
||||
Packages.First().Value.PackageType = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user